我一直試圖通過在地圖上繪製不同時間的點來製作Google地球(GE)中動畫的示例。然而,我似乎無法讓它工作。我正在使用Google的KML並查看了文檔。Google地球TimeStamp動畫序列問題
以下是繪製不同時間戳3點的示例。我在裏面使用帶有「開始」和「結束」標籤的「TimeStamp」標籤。這是他們如何在Google文檔頁面上顯示它的工作原理,但是由於GE打開文件時沒有顯示GE的時間線,因此似乎無法正常工作(時間線總是在GE出現時出現「時間戳「標籤在KML文件中)。但是,當我將「開始」和「結束」標籤更改爲「何時」標籤時,它似乎有點工作,但並不符合我的想法。有誰知道我是否使用「開始」和「結束」標籤錯誤?這是Google提供的文檔http://code.google.com/apis/kml/documentation/kmlreference.html#timespan
以下是我正在談論的示例。您可以通過將其保存爲KML文件在GE中打開它。你會看到3個點出現,但沒有動畫。我真正想要的發生是有一個點出現,然後消失,再有下一個點出現並消失......
感謝您對高級大家的幫助;)
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Style id="dotstyle">
<IconStyle>
<scale>0.3</scale>
<Icon>
<href>http://www.rootsweb.ancestry.com/~tnmeigs/images/dark-red-circle.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<TimeStamp>
<begin>2010-01-01</begin>
<end>2010-01-02</end>
</TimeStamp>
<styleUrl>#dotstyle</styleUrl>
<Point>
<coordinates>110.43852082858155,-7.582042422936696</coordinates>
</Point>
</Placemark>
<Placemark>
<TimeStamp>
<begin>2010-01-02</begin>
<end>2010-01-03</end>
</TimeStamp>
<styleUrl>#dotstyle</styleUrl>
<Point>
<coordinates>110.43852082858155,-7.592042422936696</coordinates>
</Point>
</Placemark>
<Placemark>
<TimeStamp>
<begin>2010-01-03</begin>
<end>2010-01-04</end>
</TimeStamp>
<styleUrl>#dotstyle</styleUrl>
<Point>
<coordinates>110.43852082858155,-7.602042422936696</coordinates>
</Point>
</Placemark>
</Document>
</kml>