Angular service
StreetView source
Description
Provides defered/promise API service for [Google StreetViewService] (https://developers.google.com/maps/documentation/javascript/streetview)
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 map
Returns
Type Description HttpPromise 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