OpenLayers OpenLayers

Ticket #343 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

"changebaselayer" called twice in a row

Reported by: euzuro Assigned to:
Priority: minor Milestone: 2.2 Release
Component: Map Version: SVN
Keywords: Cc:
State:

Description

r1739

In Map.js, when we are loading the layers, we take the first layer which is a baselayer and set is as *the* baselayer.

Here's the code:

                // set the first baselaye we add as the baselayer
                this.setBaseLayer(layer);
                this.events.triggerEvent("changebaselayer");

The problem is that setBaseLayer() itself triggers the "changebaselayer" event, assuming noEvent is not passed in as true (which here it is not)

Solution:

- Remove this second line. nada mas! :-)

Attachments

onlycallonce.patch (502 bytes) - added by euzuro on 10/10/06 23:49:05.
patch to remove that line

Change History

10/10/06 23:49:05 changed by euzuro

  • attachment onlycallonce.patch added.

patch to remove that line

10/10/06 23:49:39 changed by euzuro

  • owner deleted.

please review and commit

10/11/06 06:37:25 changed by crschmidt

  • status changed from new to closed.
  • resolution set to fixed.

07/05/07 17:04:30 changed by euzuro

  • keywords deleted.