[OpenLayers-Users] Layer switcher does not work

Andreas Hocevar ahocevar at opengeo.org
Wed Feb 29 04:16:40 EST 2012

Is this with the latest OpenLayers from master? It seems to be a
regression. Thanks for the report, I created a ticket:


On Wed, Feb 29, 2012 at 9:35 AM, Mustafa646 <noorcs22 at gmail.com> wrote:
> 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.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

More information about the Users mailing list