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