Skip to main content
Question

Gx:AnimatedUpdate in kml

  • December 18, 2024
  • 4 replies
  • 24 views

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

Can someone please sanity check me.
The example in the google developers for animated updates is https://developers.google.com/static/kml/documentation/kmlfiles/animatedupdate_example.kml
and it works fine.

However the same code embedded in a kml generated by the FME KML writer does not work.

As far as I can tell, the issue is with the name space declaration.

the example uses 
<kml xmlns="http://www.opengis.net/kml/2.2"
  xmlns:gx="http://www.google.com/kml/ext/2.2">
 

whereas the FME kml writer produces
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

 

Am I going crazy or does changing the declaration break the animation for anyone else?

4 replies

jobvdnoort
Supporter
Forum|alt.badge.img+10
  • Supporter
  • December 18, 2024

Hi JDH,

 

what do you want to archive exactly?

When downloading the google dev example and opening it in Google Earth. I get the zooming and rotating globe to the New Zealand’s Southern Alps.

 

When I change the top 2 lines of this file to your FME example, I get exactly the same result in Google Earth.

 

Can you clarify and maybe attach your fme created kml? 


jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • December 18, 2024

@jobvdnoort 

In my version of Google Earth Pro (7.3.6.9796)  the example kml makes the pushpin grow larger when you play the tour.
 

If on the other hand I change the kml declaration to that used by FME, leaving everything else the same. The tour will move to the correct location, but will not animate the icon size.
 


Conversely with the kml I create in FME, if I strip the atom and xsd references the animation plays as I expect.

What I don’t know is if anyone else has experienced this behaviour, or if it’s just my computer.


jobvdnoort
Supporter
Forum|alt.badge.img+10
  • Supporter
  • December 18, 2024

Hmm 

I don’t have that issue and get the same result with the 2 different KML files.

 

7.3.6.9796 (64-bit) same version.

 


jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • December 18, 2024
jobvdnoort wrote:

Hmm 

I don’t have that issue and get the same result with the 2 different KML files.

 

7.3.6.9796 (64-bit) same version.

 

Do you get the pushpin increasing in size, because your screenshot is just the regular sized pushpin.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings