自定义互动谷歌地图

时间:2011-12-05 21:59:26

标签: javascript xhtml

我想创建一个包含2个位置的自定义Google地图。

谷歌搜索已经相当多,找不到任何体面的东西。

非常感谢任何信息。

谢谢!

1 个答案:

答案 0 :(得分:2)

我已经成功使用了Google Static Maps API - 这是他们的api的一个例子: http://code.google.com/apis/maps/documentation/staticmaps/#Markers

EDIT 来自API:markers = markerStyles | markerLocation1 | markerLocation2 | 请注意,%7C下面的URL是|

这是显示我如何在威斯康星州麦迪逊市添加Camp Randall和Kohl Center的网址 http://maps.googleapis.com/maps/api/staticmap?center=Madison,WI&zoom=13&size=400x400&markers=color:blue%7Clabel:S%7C601+W+Dayton+St++Madison,+Wisconsin+53703%7C1440+Monroe+Street+Madison,+WI+53711&sensor=false

相关问题