0

Street View Static API 是否支持标记?我没有拿回标记,而且我没有看到提供将标记与街景静态图像一起使用的文档。

4

1 回答 1

1

来自 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
于 2020-07-05T00:58:11.290 回答