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:
Frédéric Junod
2008-01-28 13:10:46 +00:00
parent 221967cc3f
commit 866cfe631d
2 changed files with 14 additions and 1 deletions

View File

@@ -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");
}
}
},