Hi,
I tried switching layers thru a list of checkboxes instead of the LayerSwitcher.
i used map.removeLayer() and map.addLayer() on each checkbox click.
I tried to use layer.setVisible(false) but nothing changed the layer is still visible.
The solution is working fine by removing layers, but in each layer i have approximately 4000 Vector point, which is taking lots of time to draw (5 + sec ), but when i use the layer switcher to switch the same layer on off it does it instantly less than 1 sec.
Do you have any idea how can i imitate the layerSwitcher from the client side?
Thanks in advance.
Dany