add a 'changelayer' event that fires when a layer's visibility changes. listen for this in the layerswitcher
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1050 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -67,6 +67,7 @@ OpenLayers.Control.LayerSwitcher.prototype =
|
||||
|
||||
this.map.events.register("addlayer", this, this.redraw);
|
||||
this.map.events.register("removelayer", this, this.redraw);
|
||||
this.map.events.register("changelayer", this, this.redraw);
|
||||
return this.redraw();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user