Hi all.
I've done a simple kml to place in GE and to retrieve a list of items.
The intention is marking the list of items' kml to expire each day.
This way, the client only has a seed used to query the list and the
servers especifies when will the list be expired.
The client code is short:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://earth.google.com/kml/2.1"
>
<NetworkLink>
<name>Some points</name>
<flyToView>1</flyToView>
<Link>
<href>
http://local/prova.kml</href>
<refreshMode>onExpire</refreshMode>
</Link>
</NetworkLink>
</kml>
Let's say href is delivered from local at this time but will be online
and generated by the server.
The remote file, prova.kml, has an structure like this:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://earth.google.com/kml/2.1">
<NetworkLinkControl>
<expires>2008-12-05T15:30:00</expires>
</NetworkLinkControl>
<Folder id="Espana">
<name>España</name>
<description>Rutas de Moterus</description>
<Document>
<name>Constantina - Las Navas</name>
<description>
<![CDATA[
Mas de 300 Curvas super reviradas en un tramo de 20 kilómetros.
Acompañadas por una buena carretera de curvas para ir y volver de
Sevilla.
Sevilla - El Pedroso - Constantina - Las Navas de la Concepcion - La
Puebla de los Infantes - Cantillana - Sevilla
<br />
<a href="
http://local.moterus.com:3000/routes/constantina---las-
navas">Constantina - Las Navas</a>
]]>
</description>
<Style id="LabelColor">
<LabelStyle>
<color>ffff8c8c</color>
<colorMode>normal</colorMode>
<scale>1.2</scale>
</LabelStyle>
</Style>
<Placemark id="point_282">
<name>La Puebla de los Infantes</name>
<styleUrl>#LabelColor</styleUrl>
<Point>
<coordinates>-5.389,37.77852</coordinates>
</Point>
</Placemark>
<Placemark id="point_283">
<name>Cantillana</name>
<styleUrl>#LabelColor</styleUrl>
<Point>
<coordinates>-5.82583,37.60867</coordinates>
</Point>
</Placemark>
<Placemark id="point_284">
<name>Sevilla</name>
<styleUrl>#LabelColor</styleUrl>
<Point>
<coordinates>-5.996648,37.383205</coordinates>
</Point>
</Placemark>
</Document>
</Folder>
</kml>
When I add the client kml to GE, it calls the remote file and draws
the points. But it seems onExpire and exires tag is ignored, because I
change point's coordinates in server kml and never see the changes in
GE unless I manually click on uptade in GE.
I've verified the syntax with jedit (
http://earth.google.com/outreach/
tutorial_jedit.html), activated Errors on GE (there're no errors), and
tried onInterval refresh mode as well with no luck.
I hope anyone can show me what I'm doing wrong.
Thank you all for your time.