Does a layer switcher exist instead of the overlay switcher? What i mean by that is there a possibility to have to swith on/off different layers as we do with the overlay switcher?
Thanks for your help
Does a layer switcher exist instead of the overlay switcher? What i mean by that is there a possibility to have to swith on/off different layers as we do with the overlay switcher?
Thanks for your help
Sebastien,
We have overlay switcher instead of layer switcher because overlay is the smallest unit of imaging while layer is not. In another world, an overlay is an image passing to Client from Server, so on client side you can easily show/hide an overlay. Layer is a Server side concept, it’s more related with data and one or more layer will be drawn on one overlay, that is to say if you want to hide a layer, you need to redraw the overlay containing that very layer on server side and pass it back to client. That’s why we don’t have the LayerSwitcher.
Of course you can just put that layer to an Overlay and hide/show that overlay in the switcher, that’s the easiest solution.
Thanks,
Ben