0

我有KML字符串,我想在谷歌地圖上顯示。而不是文件,我有字符串。這是因爲我在Fusion Tables中有我的KML數據,所以我需要做出類似如下的內容:https://developers.google.com/fusiontables/docs/samples/custom_markers谷歌地圖顯示KML數據

我只有KML數據,而不是座標,所以我不確定如何顯示該數據。

我想這一點,但沒有奏效:

var marker = new google.maps.Marker({ 
     map: map, 
     position: '<polygon>....</polygon>', 
     icon: new google.maps.MarkerImage('https://developers.google.com/fusiontables/docs/samples/images/fusion_tables-32.png') 
}); 

任何幫助,非常感謝!

謝謝!

回答