Hi Ganesh, I found this ticket with a patch attached, maybe it can help you.
http://trac.openlayers.org/ticket/878 Hope this helps. On 11/26/07, Ganesh Jothikumar <[EMAIL PROTECTED]> wrote: > > Hi All > > I am using OpenLayers to display mutiple base layers and multiple > overlays. Now I am using the Layer Switcher provided by OL API > (map.addControl(new OpenLayers.Control.LayerSwitcher())) > Now I have a requirement wherin depending on the layer selection in the > Layer Switcher I have to filter the data. Is there a way wherin I can have a > event listener for a Layer Switcher i.e. whenever someone changes the > selection in the switcher a Java Script function needs to be called. And > also I should be able to get teh list of selected layers in the switcher > inside the function. Please let me know any way to do this. Any example > would be vey helpful.. > > Thanks in advance > ganesh > ________________________________ > Unlimited freedom, unlimited storage. Get it now > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > > -- Regards, Christian López Espínola _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
