【问题标题】:multiple markers google maps embed API多个标记谷歌地图嵌入API
【发布时间】:2014-11-16 05:36:42
【问题描述】:

我需要在嵌入地图上放置几个由坐标指定的标记。我知道如何为一个标记做,但不知道如何做多个。

<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
        src="https://www.google.com/maps/ms?msid=204293175747830583907.0005022420ef3bca6a816&msa=0&ie=UTF8&t=m&ll=40.79042,-73.945541&spn=0.462677,1.056747&output=embed"></iframe>

【问题讨论】:

    标签: html google-maps maps google-maps-embed


    【解决方案1】:

    您无法使用嵌入的 google maps iframe 执行此操作。

    您要么需要使用 Google Maps Map Maker (http://www.google.com/maps/mm),要么需要使用 Google Maps API (https://developers.google.com/maps/)。

    Google Maps Map Maker 的缺点是您需要随时手动返回并重新创建地图。

    我建议使用 Google Maps API。

    这是一个很棒的小教程,它向您展示了一个使用 Google Maps API 的带有多个标记的简单地图 - http://wrightshq.com/playground/placing-multiple-markers-on-a-google-map-using-api-3/

    【讨论】:

    • 感谢您的回答,我已经使用 GMAP API V3 解决了这个问题:)
    • 您的最后一个链接已损坏。
    • 教程链接正常工作,解释了如何“在谷歌地图上放置多个标记(使用 API 3)”:-)
    • Google Maps Api 现在是一项付费服务​​。不得不转向其他一些免费的地图服务
    猜你喜欢
    • 1970-01-01
    • 2011-12-25
    • 2015-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-18
    • 1970-01-01
    • 2013-06-10
    相关资源
    最近更新 更多