[mapguide-users] setup wms using maestro
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Mon Jan 11 06:38:20 EST 2010
Also, to ensure that the WMS is exposed properly from MapGuide,
try this:
http://localhost/mapguide/mapagent/mapagent.fcgi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETCAPABILITIES
Regards, Kenneth Skovhede, GEOGRAF A/S
On 11-01-2010 11:20, Zac Spitzer wrote:
> 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
>>
>>
>
>
>
More information about the mapguide-users
mailing list