(9) Animation
Using Time Primitive KML
(a) Locate yourself over the USA
(b) Create a <Folder> called months
(c) Within the folder create 12 random <Placemarker> each named after a month of the year and save as time.kml
(d) Open time.kml in a text editor
(e) Within each of the 12 sets of <Placemarker> tags add time
components , keeping a constant end date (2002-01) but making the begin date
equal to the month the <Placemarker> is named after, e.g., for July:
<Placemark>
<name>jul</name>
<LookAt>
<longitude>-97.67310804519653</longitude>
<latitude>40.33421556386488</latitude>
<altitude>0</altitude>
<range>4501838.107352327</range>
<tilt>5.193851096052529e-014</tilt>
<heading>10.73101542400057</heading>
</LookAt>
<TimeSpan>
<begin>2001-07</begin>
<end>2002-01</end>
</TimeSpan>
<styleUrl>#yellow</styleUrl>
<Point>
<coordinates>-78.26557716994674,39.9123847333105,0</coordinates>
</Point>
</Placemark>
The time an/or date
value is expressed as yyyy-mm-ddThh:mm:sszzzzzz, where T
is the separator between the date and the time, and the time zone is either Z
(for UTC) or zzzzzz, which represents plus/minus hh:mm in relation to
UTC
(g) Play the animation
The time bar will
automatically appear if the KML contains time primitive elements unless it has
been turned-off (//View/Show Time)