【问题标题】:Adding google maps to webpage将谷歌地图添加到网页
【发布时间】:2012-06-14 16:18:58
【问题描述】:

我想创建一个网页,其中包含一个文本框、一个按钮和一个包含谷歌地图的 div。我的用例是每当我在文本框中输入一些地址并单击按钮时,该地点的谷歌地图应该在该 div 中呈现。有人可以帮忙吗?

【问题讨论】:

    标签: google-maps google-maps-api-3 google-maps-markers google-maps-api-2


    【解决方案1】:

    您想使用 Google Maps API: https://developers.google.com/maps/documentation/javascript/

    以及地理编码服务: https://developers.google.com/maps/documentation/javascript/geocoding

    或自动完成: https://developers.google.com/maps/documentation/javascript/places#places_autocomplete

    那里链接的示例应该为您提供大量代码供您参考。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-12
    • 1970-01-01
    • 1970-01-01
    • 2012-04-19
    • 2015-12-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多