Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [layer-switcher]

The tag has no usage guidance.

0
votes
0answers
41 views

Weird effect on labeling when WMS layer is hidden in Layerswitcher (Openlayers 2)

I have a WMS layer published with Geoserver. When I try to hide it from the Layerswitcher, by adding the line "{displayInLayerSwitcher:false},", the layer doesn't appear in the Layerswitcher anymore, ...
1
vote
0answers
590 views

How to add layer switch/on off layers in OpenLayers [closed]

I have configured a WMS layer into OpenLayers localhost (port 8080), I want to show a layer toggling button which can show only OSM basemap checkbox and my layers. What is code for it how to add this ...
3
votes
3answers
460 views

OpenLayers layer-switcher for WMS layers

I have configured a WMS layer for OpenLayers like: var wmsSource = new ol.source.ImageWMS({ url: 'http://<servername>/geoserver/<namespace>/wms', params: {'LAYERS': [ 'Layer 001', '...
0
votes
1answer
82 views

One layerswitcher option to open two wms layers

I have two WMS layers Martello_Towers and Martello_Towers_Range. Rather than have two options in Layerswitcher I would like one option to control both layers. They are both in the same projection. I'...
2
votes
1answer
406 views

Update Bootstrap Switch with Leaflet Layer Group

I have this JSFiddle that shows two example layers that can be toggled on and off using the Bootstrap Switch to add and remove them from the map; this works fine. The problem I am having is updating ...
1
vote
1answer
3k views

Leaflet, customizing the layerswitcher [closed]

So i recently decided to switch my project from Openlayers 3 to Leaflet, mainly because i needed the layer switcher control. I followed the example on the leaflet tutorial, this one to be precise and ...
0
votes
2answers
509 views

Toggle basemaps with CartoDB.js / CreateLayer

I would like to add a toggle control/switch for basemaps to my code. I tried something similar to this: http://bl.ocks.org/iriberri/08abc420a376053c71d4 but it does not work in combination with ...