[mapguide-users] setup wms using maestro

Zac Spitzer zac.spitzer at gmail.com
Mon Jan 11 05:20:42 EST 2010


with openlayers you need to set the extents to see a map displayed

2010/1/11 Andre Schoonbee <andresch at iway.na>:
>
> I am trying to define a layer as wms using Maestro beta 2.0. (MGOS 2.1).
> The layer is towns in Namibia and I can see the towns fine when I preview
> the data of publish the layer on a map.
>
> The steps I followed:
> Go to properties of the towns layer; WMS and click on bottom button to
> automatic get  Bounds from data (the data is in shp format). Then I added
> ESPG:4326.Added Towns as name and most of the other fields such as meta data
> and abstract. The permissions I left as is.
>
> But this still now showing on my WMS open layer map. The syntax in my
> wms.htm file is as follows:
>
>                map.addLayer(layer2);
>                        layer2=new OpenLayers.Layer.WMS("MapGuide Towns",
>
> "http://173.45.90.198:8008/mapguide/mapagent/mapagent.fcgi?SERVICE=WMS&versi
> on=1.1.1&username=Administrator&password=admin",
>                                        {layers:"Ruwis/Layers/Towns",
> transparent:"true",srs:"EPSG:4326", format:"image/png"},{opacity:"0.8"});
>            map.addLayer(layer2);
>
> Pleased help!
>
> Regards
>
> Andre
>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-users mailing list