谷歌地图api图标的地方

时间:2014-08-01 09:05:34

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

我正在使用Google Maps API地方服务。 service = new google.maps.places.PlacesService(map) 我得到了结果,我想展示他们的图标。 我看到很多图标都可以在: http://maps.gstatic.com/mapfiles/place_api/icons/ 通常(但总是一样)地方类型名称+'-71.png' 但在其他一些情况下,它使用不同的名称。 例如: 类型犹太教堂有一个图标: http://maps.gstatic.com/mapfiles/place_api/icons/worship_jewish-71

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

1 个答案:

答案 0 :(得分:0)

PlaceResult包含“图标”成员:

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