-
public final class StreetViewCameraPositionState
-
-
Field Summary
Fields Modifier and Type Field Description private final StreetViewPanoramaLocationlocationprivate final StreetViewPanoramaCamerapanoramaCamera
-
Constructor Summary
Constructors Constructor Description StreetViewCameraPositionState()
-
Method Summary
Modifier and Type Method Description final StreetViewPanoramaLocationgetLocation()final StreetViewPanoramaCameragetPanoramaCamera()final UnitanimateTo(StreetViewPanoramaCamera camera, Integer durationMs)Animates the camera to be at camera in durationMs milliseconds. final UnitsetPosition(LatLng position, Integer radius, StreetViewSource source)Sets the position of the panorama. final UnitsetPosition(String panoId)Sets the StreetViewPanorama to the given panorama ID. -
-
Method Detail
-
getLocation
final StreetViewPanoramaLocation getLocation()
-
getPanoramaCamera
final StreetViewPanoramaCamera getPanoramaCamera()
-
animateTo
final Unit animateTo(StreetViewPanoramaCamera camera, Integer durationMs)
Animates the camera to be at camera in durationMs milliseconds.
- Parameters:
camera- the camera to update todurationMs- the duration of the animation in milliseconds
-
setPosition
final Unit setPosition(LatLng position, Integer radius, StreetViewSource source)
Sets the position of the panorama.
- Parameters:
position- the LatLng of the panoramaradius- the area in which to search for a panorama in meterssource- the source of the panoramas
-
setPosition
final Unit setPosition(String panoId)
Sets the StreetViewPanorama to the given panorama ID.
- Parameters:
panoId- the ID of the panorama to set to
-
-
-
-