Hi Cédric,

The way I see it, I think the simplest thing you should do is to merge both your WMS layers in a single one (by specifying an array of layers param) and customize the layerswitcher to display checkboxes for the layer params as well.

  What do you think ?

Regards,

Alexandre


On 10-12-21 02:22 AM, Cédric MOULLET wrote:
Hi,
Let's imagine that the layer switcher contains two WMS layers and these layers are served by one WMS server. Is there a way to send only one WMS request, also if the two layers are activated/visible ?
Thanks,
Cédric

--
Welcome to my world: http://www.cedricmoullet.com/
My Linked In profile: http://www.linkedin.com/in/cedricmoullet
Twitter: http://twitter.com/cedricmoullet
Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 <http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1>


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to