<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi David,<br>
For me it works when I do it like this:<br>
<pre id="line15">map.addLayer(
new OpenLayers.Layer.WMS(
"Niedersachsen WMS",
<a class="moz-txt-link-rfc2396E" href="http://www.geobasisdaten.niedersachsen.de/bestand">"http://www.geobasisdaten.niedersachsen.de/bestand"</a>,
{layers: 'ueb5000_nf,ueb1000_nf,ukn500_nf,dtk100_v_nf'},
{singleTile:true}
)
);
cheers, Marco
</pre>
<br>
<br>
<br>
<br>
Am 18.01.2010 09:25, schrieb David Alda Fernandez de Lezea:
<blockquote
cite="mid:224DBDAF88A6AC47BD22432815351BE007AD10B3@nekaposta1"
type="cite">
<title></title>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style type="text/css">BODY {
        BACKGROUND-POSITION: 25px 0px; MARGIN-TOP: 110px; MARGIN-LEFT: 140px; BACKGROUND-REPEAT: no-repeat
}
</style>
<meta name="GENERATOR" content="MSHTML 8.00.6001.18702">
<div><span class="096080408-18012010"><font size="1">Hello, </font></span></div>
<div><span class="096080408-18012010"></span> </div>
<div><span class="096080408-18012010"><font size="1">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):</font></span></div>
<div><span class="096080408-18012010"></span> </div>
<div><span class="096080408-18012010"><font size="1">var twms = new
OpenLayers.Layer.WMS( "Sigpac", <br>
"<a moz-do-not-send="true"
href="http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map">http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map</a>",
<br>
{ 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)} );<br>
<br>
map.addLayer(twms);</font></span></div>
<div><span class="096080408-18012010"></span> </div>
<div><span class="096080408-18012010"><font size="1">but no layer is
displayed. Instead I get a MapServer error: msWMSLoadGetMapParams():
WMS server error. Invalid layer(s) given in the LAYERS parameter.</font></span></div>
<div><span class="096080408-18012010"></span> </div>
<div><span class="096080408-18012010"><font size="1">Is there
anything special that I have to configure or am I doing something
wrong??</font></span></div>
<div><span class="096080408-18012010"></span> </div>
<div><span class="096080408-18012010"><font size="1">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??</font></span></div>
<div><span class="096080408-18012010"></span> </div>
<div><span class="096080408-18012010"><font size="1">Thanks in
advance.</font></span></div>
<div> </div>
<div class="Section1">
<p class="MsoNormal" align="left"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span
style="font-family: 'Frutiger 55 Roman'; font-size: 10pt;">Un saludo,</span></p>
<div>
<p class="MsoNormal"><span
style="font-family: Verdana; font-size: 7.5pt;"> <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-family: 'Frutiger 55 Roman'; font-size: 10pt;">··················································································</span><span
style="font-family: Verdana; font-size: 7.5pt;"><br>
</span><span
style="font-family: 'Frutiger 55 Roman'; font-size: 10pt;"></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><b><span
style="font-size: 9pt;"><font face="Verdana">David Alda Fernández de
Lezea</font></span></b></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
style="font-family: Verdana; font-size: 8pt;">Lurralde eta
Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
style="font-family: Verdana; font-size: 8pt;"><o:p> </o:p></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><b style=""><span
style="font-family: Verdana; font-size: 8pt;">IKT<o:p></o:p></span></b></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
style="font-family: Verdana; font-size: 8pt;">Granja Modelo s/n ·
01192 · Arkaute (Araba)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family: Verdana; font-size: 7.5pt;"><br>
··················································································<br>
Tlfnos.: 945-00-32-95<span style=""> </span><span style=""> </span><span
style=""> </span>Fax: 945-00.32.90<br>
··················································································<br>
email: <a moz-do-not-send="true" href="mailto:dalda@ikt.es">dalda@ikt.es</a>
web: <a moz-do-not-send="true" href="http://www.ikt.es/">www.ikt.es</a><br>
··················································································<o:p></o:p></span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>