【问题标题】:Google Maps API Business LocationGoogle Maps API 营业地点
【发布时间】:2012-09-20 02:43:43
【问题描述】:

早上好。

我目前正在使用以下代码在特定的经纬度加载我的 Google Map 的 API V3,它是针对客户端的,我想知道我是否可以加载类似于谷歌上弹出的 infoWindow带有商家信息、评论星级等的地图。

<script type="text/javascript">
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(lat-long),
          disableDefaultUI: true,
          zoom: 16,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("location"),
            mapOptions);
        
        var point = new google.maps.LatLng(lat-long);
        var marker = new google.maps.Marker({
            position:point,
            map: map,
        });
    }
</script>

这是在不同的 API 中完成的吗?如果可以的话,谁能给我一些有用的信息?

【问题讨论】:

    标签: google-maps-api-3 google-places-api


    【解决方案1】:

    听起来您可能正在寻找 Places API/库:

    https://developers.google.com/maps/documentation/javascript/places#place_details_responses

    不确定它是否包含您在 Google 地图上找到的所有内容。

    【讨论】:

      猜你喜欢
      • 2017-03-10
      • 2017-06-19
      • 1970-01-01
      • 2011-12-23
      • 2017-06-12
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 2018-07-22
      相关资源
      最近更新 更多