自定义地图以在API上显示

时间:2016-11-29 21:49:36

标签: google-maps google-static-maps

我试图通过谷歌api展示赛道。我已经进入并创建了custom map并且无法弄清楚如何从api中显示它。我正在尝试将其添加到网站,然后想要在其上添加另一个API。

This is the map I have created

Google MyMaps screenshot

2 个答案:

答案 0 :(得分:0)

要在Google MyMaps地图上显示Google Maps Javascript API v3的数据,请将数据导出为KML / KMZ,然后使用KmlLayer显示

相关问题:

example

KmlLayer screenshot

答案 1 :(得分:0)

由于您使用google-static-maps标记了此问题,因此您可能还对以下内容感兴趣: