[OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer

2010-01-18 Thread David Alda Fernandez de Lezea
Hello, I'm trying to have an Openlayers.WMS layer that should contain 2 WMS layers, served by MapServer, using the following code (in theory this is possible): var twms = new OpenLayers.Layer.WMS( Sigpac, http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map;, {

Re: [OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer

2010-01-18 Thread Marco Scheuble
Hi David, For me it works when I do it like this: map.addLayer( new OpenLayers.Layer.WMS( Niedersachsen WMS, http://www.geobasisdaten.niedersachsen.de/bestand;, {layers: 'ueb5000_nf,ueb1000_nf,ukn500_nf,dtk100_v_nf'}, {singleTile:true} ) ); cheers, Marco Am 18.01.2010

Re: [OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer

2010-01-18 Thread David Alda Fernandez de Lezea
CC: openlayers users Asunto: Re: [OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer Hi, Maybe, your WMS server doesn't like the space in your layers param. Try with 'ParcelasSigpac,RecintosSigpac' instead of 'ParcelasSigpac, RecintosSigpac'. Even better, you can

Re: [OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer

2010-01-18 Thread Andreas Hocevar
David Alda Fernandez de Lezea wrote: Hello, I'm trying to have an Openlayers.WMS layer that should contain 2 WMS layers, served by MapServer, using the following code (in theory this is possible): var twms = new OpenLayers.Layer.WMS( Sigpac,

Re: [OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer

2010-01-18 Thread Eric Lemoine
On Monday, January 18, 2010, David Alda Fernandez de Lezea da...@ikt.es wrote: Hello, I'm trying to have an Openlayers.WMS layer that should containĀ 2 WMS layers, served by MapServer, using the following code (in theory this is possible): var twms = new OpenLayers.Layer.WMS( Sigpac,