![]() |
|
|||||||||
Check out our new Spreadsheet Mapper 2.0
tutorial which replaces this tutorial.
Adding Time as a Fourth DimensionGoogle Earth allows you to explore the world in more than just three dimensions. By adding a TimeStamp or TimeSpan to your placemarks, your visitors will be able to explore and animate your content through time. This tutorial expands on the techniques used in Creating KML with Spreadsheets and helps you create a set of time-enabled placemarks.
Controlling Time in Google EarthWhenever time-enabled placemarks appear in My Places, a time slider appears in the upper-right corner of the 3D display in Google Earth. The time slider allows users to:
To learn how to use the time slider, refer to the overview in the Google Earth User Guide, and then try playing with the following visual example in KML:
Also explore these KML collections from the Google Earth Blog to get ideas on how you can use time in your projects:
TimeStamp and TimeSpanThere are two ways of representing time in KML:
You must specify time according to the XML Schema's definition of dates and time. For details and use examples, see the official KML 2.1 Reference. Here are a few examples of valid KML date/time formats:
Before You StartBefore you start the procedure below, we strongly recommend that you complete the Creating KML from a Spreadsheet tutorial, which shows you how to generate KML by entering data into a spreadsheet. The following procedure builds on the techniques you learn in that tutorial and adds the ability to specify TimeStamps or TimeSpans for your placemarks.
Copy the Sample SpreadsheetTo begin, open the starter spreadsheet. If you're not already signed in to your Google Account, you'll be asked to do so. Once signed in, you'll see a spreadsheet that you can edit.
Edit the Spreadsheet
Preview the KML
Display Your Placemarks in Google Earth
Publish Your ChangesWhenever you make changes to the spreadsheet, click Re-publish document on the Publish tab. Then reload the Network Link folder in Google Earth you created in the previous step by right-clicking it and selecting Refresh from the context menu.
Need More Control Over Time?It is not currently possible to add or edit TimeStamps or TimeSpans in the Google Earth user interface. So if you find that you need more control over time in your KML, you can hand-edit your KML. See the TimeStamp and TimeSpan sections of the KML Reference, and take a look at the Validating KML As You Go tutorial.
Discussion / FeedbackHave questions about this tutorial? Want to give us some feedback? Visit the Google Earth Outreach Discussion Group to discuss it with others.
What Next? |
||