I am successfully updating a placemark name, position and also it's
LookAt property periodically every second via Network Link.
The place mark moves and changes it's label just fine. But I can not
manage to get the"View" (LookAt) to be refreshed (it is updated), I
have to click on it to force the update to reflect on the screen. How
can I get the lookat also refreshing without user interaction? Also I
am not able to use any of the gx: tags, I do have the proper extension
configured in the header:
<kml xmlns="
http://www.opengis.net/kml/2.2" xmlns:gx="http://
www.google.com/kml/ext/2.2">
I alway get error messages "not supported gx:...". Using latest 5.1
google earth on Linux.
Great documentation so far!
--------
I use python to compute new positions and heading, all works, only the
"LookAt" does not refresh with out clicking on the updated object
(Placemark moves OK):
...
kml = (
'<?xml version="1.0" encoding="UTF-8"?>\n'
'<kml ' + kml_extensions + '>\n'
'<NetworkLinkControl>\n'
' <Update>\n'
' <targetHref>%s</targetHref>\n'%update_target +
' <Change>\n'
' <Placemark targetId="pmr1">\n'
' <name>"Rider at %s"</name>\n'%name +
' <Point>\n'
' <coordinates>%f,%f</coordinates>\n' %(longitude,
latitude) +
' </Point>\n'
' <LookAt>\n'
' <longitude>%f</longitude>\n'
' <latitude>%f</latitude>\n'
' <altitude>%f</altitude>\n'
' <heading>%f</heading>\n'
' <tilt>75</tilt>\n'
' <range>200</range>\n'
' <altitudeMode>absolute</altitudeMode>\n'
' </LookAt>\n' %(longitude,latitude,altitude,heading) +
' </Placemark>\n'
' </Change>\n'
' </Update>\n'
'</NetworkLinkControl>\n'
'</kml>\n' )
return kml
----------------------------------
Thanks.
-Percy