java.lang.Object | |
↳ | com.google.android.gms.maps.StreetViewPanoramaOptions |
Defines configuration PanoramaOptions for a StreetViewPanorama
.
These options can be used when adding a panorama to your application programmatically.
If you are using a StreetViewPanoramaFragment
, you can pass these options in using the
static factory method newInstance(StreetViewPanoramaOptions)
.
If you are using a StreetViewPanoramaView
, you can pass these options in using the
constructor
StreetViewPanoramaView(Context, StreetViewPanoramaOptions)
.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
| |||||||||||||||||
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new StreetViewPanoramaOptions object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Toggles the ability for users to use pan around on panoramas using gestures.
| |||||||||||
Specifies the initial camera for the Street View panorama.
| |||||||||||
Specifies the initial position for the Street View panorama based on a panorama id.
| |||||||||||
Specifies the initial position for the Street View panorama based upon location and radius.
| |||||||||||
Specifies the initial position for the Street View panorama based upon location.
| |||||||||||
Toggles the ability for users to see street names on panoramas.
| |||||||||||
When using a
StreetViewPanoramaFragment , this flag specifies whether the lifecycle of
the Street View panorama should be tied to the fragment's view or the fragment itself. | |||||||||||
Toggles the ability for users to move between panoramas.
| |||||||||||
Toggles the ability for users to zoom on panoramas using gestures.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
Creates a new StreetViewPanoramaOptions object.
Toggles the ability for users to use pan around on panoramas using gestures.
See setPanningGesturesEnabled(boolean)
for more details.
The default is true
Specifies the initial camera for the Street View panorama.
Specifies the initial position for the Street View panorama based on a panorama id. The position set by the panoramaID takes precedence over a position set by a LatLng
Specifies the initial position for the Street View panorama based upon location and radius. The position set by the panoramaID, if set, takes precedence over a position set by a LatLng
Specifies the initial position for the Street View panorama based upon location. The position set by the panoramaID, if set, takes precedence over a position set by a LatLng
Toggles the ability for users to see street names on panoramas.
See setStreetNamesEnabled(boolean)
for more details.
The default is true
When using a StreetViewPanoramaFragment
, this flag specifies whether the lifecycle of
the Street View panorama should be tied to the fragment's view or the fragment itself. The
default value is false
, tying the lifecycle of the Street View panorama to the
fragment.
Using the lifecycle of the fragment allows faster rendering of the Street View panorama when the fragment is detached and reattached, because the underlying GL context is preserved. This has the cost that detaching the fragment, but not destroying it, will not release memory used by the panorama.
Using the lifecycle of a fragment's view means that a Street View panorama is not reused when
the fragment is detached and reattached. This will cause the map to re-render from scratch,
which can take a few seconds. It also means that while a fragment is detached, and therefore
has no view, all StreetViewPanorama
methods will throw NullPointerException
.
Toggles the ability for users to move between panoramas.
See setUserNavigationEnabled(boolean)
for more details.
The default is true
Toggles the ability for users to zoom on panoramas using gestures.
See setZoomGesturesEnabled(boolean)
for more details.
The default is true