<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Rafael,<br>
retry this without the colon before layers, maybe it's only a
javascript error.<br>
<br>
Rafael chacón schrieb:
<blockquote
cite="mid:128785280901220657u48d11877t91a1d1ef2caf5c84@mail.gmail.com"
type="cite">Hi, I would like to know how to add severals mapserver
layers as my base layer for openlayers. Supose I have a mapfile with a
layers us_states (with the states shapes) other for the roads
(us_roads) , and other for the railsways (us_railsways). So, what I
want to do is to have all this layers when openlayers loads. I'd been
unable to do so... I was trying something like this but is not working:<br>
<br>
layer = new OpenLayers.Layer.MapServer("United States",<br>
"<a
moz-do-not-send="true"
href="http://localhost/cgi-bin/mapserv?us_states.map">http://localhost/cgi-bin/mapserv?us_states.map</a>",<br>
{:layers: 'us_railsways,us_states, us_roads'},<br>
{gutter:15});<br>
<br>
map.addLayer....<br>
-- <br>
Rafael Chacon,<br>
<br>
"El hombre es la medida de todas las cosas". Protagoras<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Daniel Degasperi
Software Developer
<a class="moz-txt-link-abbreviated" href="mailto:daniel.degasperi@r3-gis.com">daniel.degasperi@r3-gis.com</a>
---------------------------
R3 GIS Srl
Via Johann Kravogl 2
I-39010 Merano - Sinigo (BZ)
Tel. +39 0473 494949
Fax. +39 0473 069902
Web <a class="moz-txt-link-freetext" href="http://www.r3-gis.com">http://www.r3-gis.com</a>
-----------------------------
</pre>
</body>
</html>