Note that GeoExt's layer selector stuff has a bunch of functionality 
surrounding this. (The OpenLayers LayerSwitcher does not.)

-- Chris

On Dec 21, 2010, at 8:31 AM, ext Alexandre Dube wrote:

> 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
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> 
>> us...@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 
> 
> -- 
> Alexandre Dubé
> Mapgears
> 
> www.mapgears.com
> _______________________________________________
> Users mailing list
> us...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to