Hi,
I'm using the kml tutorial (
http://earth.google.com/kml/kml_21tutorial.html#updates).
The update works fine but there is one problem; when i load the update kml file, GE don't fly to the new coordinates.
The placemark is well changed.
How can I do that?
Here are my kml files:
Point-load.kml Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<NetworkLink>
<name>Loads Point.kml</name>
<flyToView>1</flyToView>
<Link>
<href>/tmp/Point.kml</href>
</Link>
</NetworkLink>
</kml>
Point.kml Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document id="123">
<Placemark id="pm123">
<name>point123</name>
<LookAt id="la123">
<longitude>5.36318055556</longitude>
<latitude>51.8579722222</latitude> <range>500</range>
<tilt>0</tilt>
<heading>0</heading>
<altitudeMode>relativeToGround</altitudeMode>
</LookAt>
<Point id="p123">
<coordinates>5.36318055556,51.8579722222,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
Update_load.kml Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<NetworkLink>
<name>This is the update</name>
<Link>
<href>/tmp/NetworkLinkControl-Update.kml</href>
</Link>
</NetworkLink>
</kml>
NetworkLinkControl-Update.kml Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<NetworkLinkControl>
<flyToView>1</flyToView>
<Update>
<targetHref>/tmp/Point.kml</targetHref>
<Change>
<Placemark targetId="pm123">
<name>Laats bekende positie</name>
</Placemark>
</Change>
<Change>
<Point targetId="p123">
<coordinates>4.36010115937,51.8579722222,0</coordinates>
</Point>
</Change>
<Change>
<LookAt targetId="la123">
<longitude>4.36010115937</longitude>
<latitude>51.8579722222</latitude>
<range>500</range>
<tilt>0</tilt>
<heading>0</heading>
<altitudeMode>relativeToGround</altitudeMode>
</LookAt>
</Change>
</Update>
</NetworkLinkControl>
</kml>
Thank you for taking time to look at it.
L01