【发布时间】:2020-07-05 11:13:06
【问题描述】:
街景静态 API 是否支持标记?我没有拿回标记,而且我没有看到任何有关在街景静态图像中使用标记的文档。
【问题讨论】:
标签: google-street-view-static-api
街景静态 API 是否支持标记?我没有拿回标记,而且我没有看到任何有关在街景静态图像中使用标记的文档。
【问题讨论】:
标签: google-street-view-static-api
来自 Google 的文档表明支持街景标记:
https://developers.google.com/maps/documentation/ios-sdk/streetview#markers_within_street_view
一个例子是:
// Create a marker at the Eiffel Tower
let position = CLLocationCoordinate2D(latitude: 48.858, longitude: 2.294)
let marker = GMSMarker(position: position)
// Add the marker to a GMSPanoramaView object named panoView
marker.panoramaView = panoView
// Add the marker to a GMSMapView object named mapView
marker.map = mapView
【讨论】: