maandag 11 juni 2007

Google Earth kml automatic refresh from server

In order to let Google Earth reload automatically from a server-based file, you have to make sure that the property "refreshInterval" is spelled as "refreshInverval".

For example:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<NetworkLink>
<name>Automatic server-based reload</name>
<Url>
<href>http://example.com/sample.kml</href>
<refreshMode>onInterval</refreshMode>
<refreshInverval>120</refreshInverval>
</Url>
</NetworkLink>
</kml>

Geen opmerkingen: