StreetView()
Provides defered/promise API service for Google StreetViewService
- Source:
Methods
-
(static) 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 map- Source:
Returns:
Future object
- Type
- HttpPromise
Example
StreetView.getPanorama(map).then(function(panoId) { $scope.panoId = panoId; });
-
(static) 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
- Source:
Example
StreetView.setPanorama(map, panoId);