Can I show all timestamps in Google Earth by default?

I am looking at creating KML tags with Timestamp elements . This is very easy to do, but I don’t like the behavior of Google Earth showing a small amount of time when KML initially loads. I would like it to show the full time period (and therefore all labels) by default.

Is there any way to do this? I do not see any settings in Google Earth or anything in the KML documentation for this.

The alternative that I am considering is basically to duplicate each label and have 1 set with timestamps and 1 without, in separate folders. Folders will use the switch select function. I would like to avoid this if possible, since KML could potentially have thousands of labels and seems to be a waste for duplicate nodes.

Here's an example from this source that has KML with tags if you want to see the behavior I'm talking about.

Update: The behavior that I see using a time slider that does not use the full range of KML tags that it contains seems to be that the file is downloaded via a network link to a local file. I am not sure how to control the behavior of the time slider in this case. I may have a link to "fly to view on refresh" that sets the time slider correctly, but I don’t want to move the camera to lat / long, as I update every 4 seconds.

+5
source share
1 answer

Google Earth KML. , KML / , Google Earth KML-. , KML NetworkLinks , Google Earth.

, KML , KML . 1787 1959 . https://developers.google.com/kml/documentation/us_states.kml

, Camera LookAt, . , 100 , <gx:TimeSpan> KML. lat/lon/range, lat = 0, lon = 0, range = 0.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
<Document>
    ....
    <LookAt>
            <gx:TimeSpan>
                    <begin>1787</begin>
                    <end>1887</end>
            </gx:TimeSpan>
            <longitude>-95.71</longitude>
            <latitude>37.09</latitude>
            <range>4119625</range>
            ...
    </LookAt>
    ...
</Document>
</kml>

, "" Google , , .

, , , , , . , .

KML , , , . flyToView NetworkLink, , KML.

<NetworkLink>
  <flyToView>1</flyToView>
  <Link>
    <href>...</href>
  </Link>
</NetworkLink>

, NetworkLink KML , <TimeSpan> NetworkLinks, , Google Earth .

<NetworkLink>
  <TimeSpan>
    <begin>1787</begin>
    <end>1887</end>
  </TimeSpan>
  <flyToView>1</flyToView>
  <Link>
    <href>...</href>
  </Link>
</NetworkLink>

:
https://developers.google.com/kml/documentation/kmlreference#timespan
https://developers.google.com/kml/documentation/kmlreference#gxtimespan

+7

All Articles