我有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')
});
任何帮助,非常感谢!
谢谢!