[英]Allow download of KML file created from JavaScript and Google Earth API
[英]javascript-how to set the animation range of kml file in google earth
當前,如果我單擊按鈕,則地圖將開始設置動畫。 但是它永遠不會停止,它會無限地動畫。 如果地圖/文件來自2004-2008,我只希望它在2008-12-31自動停止。 我怎樣才能做到這一點?
我試過了
var timeSpan = ge.createTimeSpan('');
timeSpan.getBegin().set('2004');
timeSpan.getEnd().set('2008');
ge.getTime().setTimePrimitive(timeSpan);
但這是行不通的,我認為可能無法達到我的目的。 所以請幫助我,我很掙扎...
您可以做幾件事,而又不了解要構建的內容,很難知道該推薦什么。 一個建議:
這樣,用戶就可以擺弄用戶界面(例如,拖動滑塊),從而干擾您可能想講述的故事...
你可以看到在很多上面提到的例子代碼http://code.google.com/apis/ajax/playground/#internal_clock_rate在和一些額外的文件http://code.google.com/apis/earth/documentation /time.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.