[OpenLayers-Users] How to have multiple wms layers into
one Openlayers.WMS layer
Marco Scheuble
mail at marco-scheuble.de
Mon Jan 18 03:35:14 EST 2010
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 09:25, schrieb 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",
>
> { transparent: 'true', layers: 'ParcelasSigpac,
> RecintosSigpac'},{strategies: [new
> OpenLayers.Strategy.BBOX()],isBaseLayer: false, buffer:1,
> gutter:0,visibility: false, units: 'm', maxExtent: new
> OpenLayers.Bounds(463506.9978541628, 4702558.185239193,
> 603185.4988525142, 4811754.780732273)} );
>
> map.addLayer(twms);
> but no layer is displayed. Instead I get a MapServer error:
> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in
> the LAYERS parameter.
> Is there anything special that I have to configure or am I doing
> something wrong??
> On a totally differente subject. I use Tilecache for raster files. It
> makes sense using Tilecache for non-raster layers, i.e. for wms vector
> layers??
> Thanks in advance.
>
> Un saludo,
>
> ··················································································
>
> *David Alda Fernández de Lezea*
>
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> *IKT*
>
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
>
> ··················································································
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ··················································································
> email: dalda at ikt.es
> <mailto:dalda at ikt.es> web: www.ikt.es
> <http://www.ikt.es/>
> ··················································································
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100118/8f51e6d4/attachment.html
More information about the Users
mailing list