【问题标题】:Does Street View Static API support markersStreet View Static API 是否支持标记
【发布时间】:2020-07-05 11:13:06
【问题描述】:

街景静态 API 是否支持标记?我没有拿回标记,而且我没有看到任何有关在街景静态图像中使用标记的文档。

【问题讨论】:

    标签: google-street-view-static-api


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-22
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 2015-10-02
      • 2020-07-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多