Angular service

StreetView source

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:
NameTypeDescription
map map

Google map instance

latlng LatLng

Google LatLng instance default: the center of the map

Returns:
TypeDescription
HttpPromise

Future object

setPanorama (map, panoId)

Set panorama view on the given map with the panorama id

Example
StreetView.setPanorama(map, panoId);
Parameters:
NameTypeDescription
map map

Google map instance

panoId String

Panorama id fro getPanorama method