Change OpenLayers.Layer.setIsBaseLayer to trig the 'changebaselayer' event not
the 'changelayer' event. r=crschmidt (Closes #1306) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -576,7 +576,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
if (isBaseLayer != this.isBaseLayer) {
|
||||
this.isBaseLayer = isBaseLayer;
|
||||
if (this.map != null) {
|
||||
this.map.events.triggerEvent("changelayer");
|
||||
this.map.events.triggerEvent("changebaselayer");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user