Package 

Class StreetViewCameraPositionState

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final StreetViewPanoramaLocation location
      private final StreetViewPanoramaCamera panoramaCamera
    • Method Summary

      Modifier and Type Method Description
      final StreetViewPanoramaLocation getLocation()
      final StreetViewPanoramaCamera getPanoramaCamera()
      final Unit animateTo(StreetViewPanoramaCamera camera, Integer durationMs) Animates the camera to be at camera in durationMs milliseconds.
      final Unit setPosition(LatLng position, Integer radius, StreetViewSource source) Sets the position of the panorama.
      final Unit setPosition(String panoId) Sets the StreetViewPanorama to the given panorama ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLocation

         final StreetViewPanoramaLocation getLocation()
      • animateTo

         final Unit animateTo(StreetViewPanoramaCamera camera, Integer durationMs)

        Animates the camera to be at camera in durationMs milliseconds.

        Parameters:
        camera - the camera to update to
        durationMs - 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 panorama
        radius - the area in which to search for a panorama in meters
        source - 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