[OpenLayers-Users] KML NetworkLink and auto-refresh

Andrew Smith laconical at gmail.com
Wed Mar 25 05:21:29 EDT 2009


Hi all,

I found an entry in a Google Code FAQ (
http://code.google.com/support/bin/answer.py?answer=69906&topic=11367#displaying)
showing how to use MySQL to create KML files which can be loaded into Google
Earth or Google Maps.  The thing that interests me is the following:

<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns = 'http://earth.google.com/kml/2.1'>
  <Folder>
    <NetworkLink>
      <Link>
        <href>http://example.com/phpsql_genkml.kml</href>
        <refreshMode>onInterval</refreshMode>
        <refreshInterval>3600</refreshInterval>
      </Link>
    </NetworkLink>
    <NetworkLink>
      <Link>
        <href>http://example.com/phpsql_genkml_ls.kml</href>
        <refreshMode>onInterval</refreshMode>
        <refreshInterval>3600</refreshInterval>
      </Link>
    </NetworkLink>
  </Folder>
</kml>

This indicates that the KML files are automatically reloaded by Google
Maps every 3600 seconds. It looks like refreshMode and refreshInterval
are part of the KML specification.  Does OpenLayers support this auto
refresh functionality?

Cheers,

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090325/91f0baf0/attachment.html


More information about the Users mailing list