[Mapguide_dev] KML and localhost.
Scott Hameister
ScottH at mPower-tech.com
Wed Jan 3 11:09:19 EST 2007
I also posted this in the users forum.but no response..
Does the KML Map request work with localhost..I run it and nothing shows
up.It just zooms into the US and that's it
Here is my Request..
<a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetMapKml&V
ERSION=1&MAPDEFINITION=Library://MyWEATHER/TESTER4.MapDefinition&FORMAT=KMZ"
target=_blank>HELLO</a>
Here is the resulting KML file contents:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>TESTER</name>
<open>1</open>
<Region><LatLonAltBox><north>53.998764</north><south>36.250870</south><east>
-70.674290</east><west>-109.114973</west></LatLonAltBox></Region>
<NetworkLink>
<name>STATES</name>
<Url>
</Url>
<Link><href>http://localhost:80/mapguide/mapagent/mapagent.fcgi?OPERATION=Ge
tLayerKml<![CDATA[&VERSION=1]]><![CDATA[&LAYERDEFINITION=Library://MyWEATHER
/Layers/STATES.LayerDefinition]]><![CDATA[&DRAWORDER=4]]><![CDATA[&FORMAT=KM
Z]]><![CDATA[&SESSION=1d9527fa-0000-1000-8004-00c09ffd5d3f_en
]]></href><viewRefreshMode>onStop</viewRefreshMode><viewRefreshTime>1</viewR
efreshTime><viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]<![
CDATA[&WIDTH=[horizPixels]]]><![CDATA[&HEIGHT=[vertPixels]]]></viewFormat></
Link>
</NetworkLink>
<NetworkLink>
<name>COUNTIES</name>
<Url>
</Url>
<Link><href>http://localhost:80/mapguide/mapagent/mapagent.fcgi?OPERATION=Ge
tLayerKml<![CDATA[&VERSION=1]]><![CDATA[&LAYERDEFINITION=Library://MyWEATHER
/Layers/COUNTIES.LayerDefinition]]><![CDATA[&DRAWORDER=3]]><![CDATA[&FORMAT=
KMZ]]><![CDATA[&SESSION=1d9527fa-0000-1000-8004-00c09ffd5d3f_en
]]></href><viewRefreshMode>onStop</viewRefreshMode><viewRefreshTime>1</viewR
efreshTime><viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]<![
CDATA[&WIDTH=[horizPixels]]]><![CDATA[&HEIGHT=[vertPixels]]]></viewFormat></
Link>
</NetworkLink>
<NetworkLink>
<name>LAKES</name>
<Url>
</Url>
<Link><href>http://localhost:80/mapguide/mapagent/mapagent.fcgi?OPERATION=Ge
tLayerKml<![CDATA[&VERSION=1]]><![CDATA[&LAYERDEFINITION=Library://MyWEATHER
/Layers/LAKES.LayerDefinition]]><![CDATA[&DRAWORDER=2]]><![CDATA[&FORMAT=KMZ
]]><![CDATA[&SESSION=1d9527fa-0000-1000-8004-00c09ffd5d3f_en
]]></href><viewRefreshMode>onStop</viewRefreshMode><viewRefreshTime>1</viewR
efreshTime><viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]<![
CDATA[&WIDTH=[horizPixels]]]><![CDATA[&HEIGHT=[vertPixels]]]></viewFormat></
Link>
</NetworkLink>
<NetworkLink>
<name>Weather</name>
<visibility>0</visibility>
<Url>
</Url>
<Link><href>http://localhost:80/mapguide/mapagent/mapagent.fcgi?OPERATION=Ge
tLayerKml<![CDATA[&VERSION=1]]><![CDATA[&LAYERDEFINITION=Library://MyWEATHER
/Layers/Weather.LayerDefinition]]><![CDATA[&DRAWORDER=1]]><![CDATA[&FORMAT=K
MZ]]><![CDATA[&SESSION=1d9527fa-0000-1000-8004-00c09ffd5d3f_en
]]></href><viewRefreshMode>onStop</viewRefreshMode><viewRefreshTime>1</viewR
efreshTime><viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]<![
CDATA[&WIDTH=[horizPixels]]]><![CDATA[&HEIGHT=[vertPixels]]]></viewFormat></
Link>
</NetworkLink>
</Document>
</kml>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_dev/attachments/20070103/7272a2ab/attachment.html
More information about the Mapguide_dev
mailing list