[Mapguide_users] KML files and Localhost
Andy Morsell
amorsell at spatialgis.com
Wed Jan 3 20:56:15 EST 2007
Does it work OK with the Sheboygan sample?
http://
<http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetMapKml&VERSIO
N=1&MAPDEFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition&F
ORMAT=KMZ>
localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetMapKml&VERSION=1&MAPD
EFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition&FORMAT=KM
Z
I'm quite impressed with how well this worked for me when referencing a
Linux server with RC1 on it. I can't test it with localhost, however, since
Google Earth refuses to run on that box.
Andy
_____
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Scott Hameister
Sent: Friday, December 29, 2006 1:44 PM
To: mapguide_users at lists.osgeo.org
Subject: [Mapguide_users] KML files and Localhost
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_users/attachments/20070103/bbede3ba/attachment-0001.html
More information about the Mapguide_users
mailing list