[OpenLayers-Dev] OL LayerSwitcher Listener

Christian López Espínola penyaskito at gmail.com
Mon Nov 26 09:06:15 EST 2007


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 <ganeshjothikumar at yahoo.com> 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
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>


-- 
Regards,

Christian López Espínola


More information about the Dev mailing list