Gregory Bologna
Gregory Bologna

Reputation: 276

Does Street View Static API support markers

Are markers supported in Street View Static API? I am not getting a marker back, and I see no documentation provided for using markers with street view static images.

Upvotes: 0

Views: 63

Answers (1)

jcklopp
jcklopp

Reputation: 491

Documentation from Google indicates that street view markers are supported:

https://developers.google.com/maps/documentation/ios-sdk/streetview#markers_within_street_view

an example is:

// 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

Upvotes: 1

Related Questions