(boolean enabled)
Specifies whether ambient-mode styling should be enabled.
GoogleMapOptions GoogleMapOptions camera(
CameraPositioncamera)
Specifies the initial camera position for the map (specify null to use the default camera position).
GoogleMapOptions compassEnabled(boolean enabled)
Specifies whether the compass should be enabled.
static GoogleMapOptions Boolean Integer getBackgroundColor()
Returns the current backgroundColor
for the map, or null
if unspecified.
()
Returns the camera option, or null
if unspecified.
()
Returns the liteMode
option, or null
if unspecified.
()
Returns the mapColorScheme
option, or Scheme.LIGHT
default if unspecified.
()
Returns the mapId
, or null
if unspecified.
()
Returns the mapType
option, or -1
if unspecified.
()
Returns the zOrderOnTop
option, or null
if unspecified.
(
LatLngBoundsllbounds)
Specifies a LatLngBounds to constrain the camera target, so that when users scroll and pan the map, the camera target does not move outside these bounds.
GoogleMapOptions liteMode(boolean enabled)
Specifies whether the map should be created in lite mode.
GoogleMapOptions mapColorScheme(int mapColorScheme)
Specifies a change to the initial map color scheme, default is MapColorScheme.LIGHT
.
(boolean enabled)
Specifies whether the mapToolbar should be enabled.
GoogleMapOptions mapType(int mapType)
Specifies a change to the initial map type.
GoogleMapOptions maxZoomPreference(float maxZoomPreference)
Specifies a preferred upper bound for camera zoom.
GoogleMapOptions minZoomPreference(float minZoomPreference)
Specifies a preferred lower bound for camera zoom.
GoogleMapOptions GoogleMapOptions GoogleMapOptions GoogleMapOptions String GoogleMapOptions useViewLifecycleInFragment(boolean useViewLifecycleInFragment)
When using a
MapFragment
, this flag specifies whether the lifecycle of the map should be tied to the fragment's view or the fragment itself.
void GoogleMapOptions zOrderOnTop(boolean zOrderOnTop)
Control whether the map view's surface is placed on top of its window.
GoogleMapOptions GoogleMapOptions Inherited Method Summary From class java.lang.Object Objectclone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface android.os.Parcelable abstract intdescribeContents()
abstract void writeToParcel(
Parcelarg0, int arg1)
Public Constructors public GoogleMapOptions ()Creates a new GoogleMapOptions object.
Public Methods public GoogleMapOptions ambientEnabled (boolean enabled)Specifies whether ambient-mode styling should be enabled. The default value is false
. When enabled, ambient-styled maps can be displayed when an Ambiactive device enters ambient mode.
Sets the map background color. This is the color that shows underneath map tiles and displays whenever the renderer does not have a tile available for a portion of the viewport.
Parameters backgroundColor the color to show in the background of the map. Ifnull
is supplied then the map uses the default renderer background color. public GoogleMapOptions camera (CameraPosition camera)
Specifies the initial camera position for the map (specify null to use the default camera position).
public Boolean getAmbientEnabled ()Returns the ambientEnabled
option, or null
if unspecified.
Returns the current backgroundColor
for the map, or null
if unspecified.
Returns the camera option, or null
if unspecified.
Returns the compassEnabled
option, or null
if unspecified.
Returns the LatLngBounds
used to constrain the camera target, or null
if unspecified.
Returns the liteMode
option, or null
if unspecified.
Returns the mapColorScheme
option, or Scheme.LIGHT
default if unspecified.
Returns the mapId
, or null
if unspecified.
Returns the mapToolbarEnabled
option, or null
if unspecified.
Returns the mapType
option, or -1
if unspecified.
Returns the maximum zoom level preference, or null
if unspecified.
Returns the minimum zoom level preference, or null
if unspecified.
Returns the rotateGesturesEnabled
option, or null
if unspecified.
Returns the scrollGesturesEnabled
option, or null
if unspecified.
Returns the scrollGesturesEnabledDuringRotateOrZoom
option, or null
if unspecified.
Returns the tiltGesturesEnabled
option, or null
if unspecified.
Returns the useViewLifecycleInFragment
option, or null
if unspecified.
Returns the zOrderOnTop
option, or null
if unspecified.
Returns the zoomControlsEnabled
option, or null
if unspecified.
Returns the zoomGesturesEnabled
option, or null
if unspecified.
Specifies whether the map should be created in lite mode. The default value is false
. If lite mode is enabled, maps will load as static images. This improves performance in the case where a lot of maps need to be displayed at the same time, for example in a scrolling list, however lite-mode maps cannot be panned or zoomed by the user, or tilted or rotated at all.
Specifies a change to the initial map color scheme, default is MapColorScheme.LIGHT
.
Specifies a change to the initial map type.
public GoogleMapOptions scrollGesturesEnabledDuringRotateOrZoom (boolean enabled) public GoogleMapOptions useViewLifecycleInFragment (boolean useViewLifecycleInFragment)When using a MapFragment
, this flag specifies whether the lifecycle of the map should be tied to the fragment's view or the fragment itself. The default value is false
, tying the lifecycle of the map to the fragment.
Using the lifecycle of the fragment allows faster rendering of the map 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 map.
Using the lifecycle of a fragment's view means that a map 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 GoogleMap
methods will throw NullPointerException
.
Control whether the map view's surface is placed on top of its window. See SurfaceView.setZOrderOnTop(boolean)
for more details. Note that this will cover all other views that could appear on the map (e.g., the zoom controls, the my location button).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4