[mapserver-users] Openlayers Mapserver

Daniel Degasperi daniel.degasperi at r3-gis.com
Thu Jan 22 07:09:57 PST 2009


Hi Rafael,
retry this without the colon before layers, maybe it's only a javascript 
error.

Rafael chacón schrieb:
> 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:
>
> layer = new OpenLayers.Layer.MapServer("United States",
>                                                                     
> "http://localhost/cgi-bin/mapserv?us_states.map",
>                                                                     
> {:layers: 'us_railsways,us_states, us_roads'},
>                                                                     
> {gutter:15});
>
> map.addLayer....
> -- 
> Rafael Chacon,
>
> "El hombre es la medida de todas las cosas". Protagoras
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>   


-- 
  Daniel Degasperi
  Software Developer
  daniel.degasperi at r3-gis.com
  
---------------------------
  R3 GIS Srl
  Via Johann Kravogl 2
  I-39010 Merano - Sinigo (BZ)
  Tel. +39 0473 494949
  Fax. +39 0473 069902
  Web  http://www.r3-gis.com
-----------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090122/0b962d13/attachment.htm>


More information about the MapServer-users mailing list