2017-08-11 150 views
-1

我一直在使用Google融合表進行項目,目的是顯示在地圖上使用多線連接的兩點。但是我不能讓聚線出現在我的地圖上使用以下格式:Google Fusion表格KML折線未顯示

<LineString><coordinates> 
lat,long 
lat,long 
</coordinates></LineString> 

任何人可以幫我找出我在做什麼錯的,因爲當我看着其他例子中使用相同的格式他們似乎工作得很好。

這裏是鏈接到我的融合表:

https://www.google.com/fusiontables/DataSource?docid=1dHu30w-Gcl91up6sCJeJGh0ghhdiGrh8vcmDQf_L

感謝您的幫助!

回答

0

這可能是您的LAT LONG假定爲LONG LAT的訂單。 爲了參考這裏是一個例子:

<LineString> 
    <extrude>1</extrude> 
    <tessellate>1</tessellate> 
    <coordinates> 
     -122.364383,37.824664,0 
     -122.364152,37.824322,0 
     -122.363999,37.824202,0 
     -122.363844,37.824122,0 
    </coordinates> 
</LineString> 

這裏是鏈接到例如:https://developers.google.com/kml/documentation/kmlreference#example_93