[mapguide-trac] #955: KML and KMZ mapagent operations broken with Google Earth 5

MapGuide Open Source trac_mapguide at osgeo.org
Sat Apr 4 20:25:38 EDT 2009


#955: KML and KMZ mapagent operations broken with Google Earth 5
-------------------------+--------------------------------------------------
   Reporter:  amorsell   |       Owner:                
       Type:  defect     |      Status:  new           
   Priority:  high       |   Milestone:  2.1           
  Component:  Map Agent  |     Version:  2.0.2         
   Severity:  critical   |    Keywords:  kml,kmz,google
External_id:             |  
-------------------------+--------------------------------------------------
 The KML and KMZ mapagent operations output is broken with the latest
 release of Google Earth.  There appear to be more than one problem, but 3
 items are noted below:

 1.
 Using the following:
 http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetMapKml&VERSION=1.0.0&MAPDEFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition&FORMAT=KML

 The KML opens in Google Earth fine and the various network links appear in
 the Places legend.  But, the network links never refresh.

 There is a bug in GE 5 where network links do not auto refresh when using
 onStop viewrefreshmode.  Google has acknowledged this bug.  To work-around
 it (for whatever reason this works), the following needs to be in the
 network link definition:

 How it normally would be generated through the mapagent:

 <viewRefreshMode>onStop</viewRefreshMode>
 <viewRefreshTime>1</viewRefreshTime>

 How it needs to be generated to work with GE 5:

 <refreshMode>onInterval</refreshMode>
 <refreshinterval>9999</refreshinterval>
 <viewRefreshMode>onStop</viewRefreshMode>
 <viewRefreshTime>1</viewRefreshTime>

 2. Trying to open the network links manually in a browser causes the
 server to not return anything.  The following is an example:
 http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetLayerKml&VERSION=1.0.0&LAYERDEFINITION=Library://Samples/Sheboygan/Layers/Islands.LayerDefinition&DRAWORDER=3&FORMAT=KML&SESSION=
 5b7e65aa-0000-1000-8006-0050569412cb_en_7F0000010AFC0AFB0AFA

 3.
 Using the following:
 http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GetMapKml&VERSION=1.0.0&MAPDEFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition&FORMAT=KMZ

 The KMZ is created and Google Earth opens, but never appears in the GE
 Places legend so the KMZ is most likely malformed.

 All in all, there appears to be multiple problems with MGOS 2.0.2 and
 Google Earth 5 KML and KMZ.  Some of these problems are GE 5 related, and
 some are MGOS related.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/955>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list