Provides defered/promise API service for Google StreetViewService
Methods
-
getPanorama (map, latlng) -> HttpPromise
-
Retrieves panorama id from the given map (and or position)
Example
StreetView.getPanorama(map).then(function(panoId) { $scope.panoId = panoId; });Parameters:
Name Type Description map map Google map instance
latlng LatLng Google LatLng instance
default: the center of the mapReturns:
Future object
-
setPanorama (map, panoId)
-
Set panorama view on the given map with the panorama id
Example
StreetView.setPanorama(map, panoId);Parameters:
Name Type Description map map Google map instance
panoId String Panorama id fro getPanorama method