set LayerSwitcher to listen for removed layers

git-svn-id: http://svn.openlayers.org/trunk/openlayers@537 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-07 14:54:22 +00:00
parent 0db22c7d88
commit eba9f241a0

View File

@@ -63,6 +63,7 @@ OpenLayers.Control.LayerSwitcher.prototype =
this.div.style.width = "10em";
this.map.events.register("addlayer", this, this.redraw);
this.map.events.register("removelayer", this, this.redraw);
return this.redraw();
},