[OpenLayers-Users] Layer switcher does not work

Mustafa646 noorcs22 at gmail.com
Wed Feb 29 03:35:01 EST 2012


I have added following references on top




I have displayed 3 wms layers over google map and i am using layer switcher
as follows:

 map.addLayers([OSM, gmap, gsat, wmslayer1, wmslayer2, wmslayer3]);

var LayerList = new OpenLayers.Control.LayerSwitcher({ 'div':
OpenLayers.Util.getElement('LayerList'), activeColor: '#660066' });

map.addControl(LayerList);

on front end web map , now when i select/unselect layers from layer
switcher, it does not work, and layers do not hide when i unselect any
layer.

also basemap layers dot not change when i select between OSM, gmap, gsat. it
remains as OSM the first layer. 

Can anybody explain why suddenly this happen and layers do not hide when i
unselect? Is there any problem with google and openlayers references because
it was working fine since last year.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Layer-switcher-does-not-work-tp4530505p4530505.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list