Hello List,<br><br>I am using layer pairs in my map, one of those for selection. I would like to remove the selection layer from the map as soon as the user removes the main layer using the layer switcher. Is it possible to register some "visibilityChanged" event handler, so that it calls a function as soon as its visibility parameter changes?
<br>It could be something like that:<br><br>layer.events.register("visibilityChanged", layer, function(e) {} );<br><br>Maybe there is some way to register the event in the layer switcher control as well, which could call the function as soon as it has changes?
<br clear="all"><br>Thanks in advance!<br>Dmitri