【问题标题】:google maps api icons for places谷歌地图 api 图标的地方
【发布时间】:2014-08-01 09:05:33
【问题描述】:

我正在使用 Google Maps API 地点服务。 服务 = 新的 google.maps.places.PlacesService(map) 我得到了结果,我想显示他们的图标。 我看到可以在以下位置找到许多图标: http://maps.gstatic.com/mapfiles/place_api/icons/ 通常(但总是)带有地点类型名称+'-71.png' 但在其他一些情况下,它使用不同的名称。 例如: type synagogue 有一个图标: http://maps.gstatic.com/mapfiles/place_api/icons/worship_jewish-71

如何查看完整列表以便将类型与图标匹配?

【问题讨论】:

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


    【解决方案1】:

    PlaceResult 包含一个“图标”成员:

    icon | string | URL to an image resource that can be used to represent this Place's category.
    

    【讨论】:

      猜你喜欢
      • 2012-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-17
      相关资源
      最近更新 更多