public abstract static class LocationLayerOptions.Builder
extends java.lang.Object
LocationLayerOptions.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract LocationLayerOptions.Builder |
accuracyAlpha(float accuracyAlpha)
Set the opacity of the accuracy view to a value from 0 to 1, where 0 means the accuracy view
is completely transparent and 1 means the view is completely opaque.
|
abstract LocationLayerOptions.Builder |
accuracyColor(int accuracyColor)
Solid color to use as the accuracy view color property.
|
abstract LocationLayerOptions.Builder |
backgroundDrawable(int backgroundDrawable)
Defines the drawable used for the background state icon.
|
abstract LocationLayerOptions.Builder |
backgroundDrawableStale(int backgroundDrawableStale)
Defines the drawable used for the stale background icon.
|
abstract LocationLayerOptions.Builder |
backgroundStaleTintColor(java.lang.Integer backgroundStaleTintColor)
Defines the background stale color as an integer.
|
abstract LocationLayerOptions.Builder |
backgroundTintColor(java.lang.Integer backgroundTintColor)
Defines the background color as an integer.
|
abstract LocationLayerOptions.Builder |
bearingDrawable(int bearingDrawable)
Defines the drawable used for the bearing icon.
|
abstract LocationLayerOptions.Builder |
bearingTintColor(java.lang.Integer bearingTintColor)
Defines the bearing icon color as an integer.
|
LocationLayerOptions |
build()
Build a new instance of this
LocationLayerOptions class. |
abstract LocationLayerOptions.Builder |
elevation(float elevation)
Sets the base elevation of this view, in pixels.
|
abstract LocationLayerOptions.Builder |
enableStaleState(boolean enabled)
Enable or disable to stale state mode.
|
abstract LocationLayerOptions.Builder |
foregroundDrawable(int foregroundDrawable)
Supply a Drawable that is to be rendered on top of all of the content in the Location Layer
Plugin layer stack.
|
abstract LocationLayerOptions.Builder |
foregroundDrawableStale(int foregroundDrawableStale)
Defines the drawable used for the stale foreground icon.
|
abstract LocationLayerOptions.Builder |
foregroundStaleTintColor(java.lang.Integer foregroundStaleTintColor)
Defines the foreground stale color as an integer.
|
abstract LocationLayerOptions.Builder |
foregroundTintColor(java.lang.Integer foregroundTintColor)
Defines the foreground color as an integer.
|
abstract LocationLayerOptions.Builder |
gpsDrawable(int gpsDrawable)
Defines the drawable used for the navigation state icon.
|
abstract LocationLayerOptions.Builder |
maxZoom(double maxZoom)
Sets the maximum zoom level the map can be displayed at.
|
abstract LocationLayerOptions.Builder |
minZoom(double minZoom)
Sets the minimum zoom level the map can be displayed at.
|
abstract LocationLayerOptions.Builder |
padding(int[] padding)
Sets the distance from the edges of the map view’s frame to the edges of the map
view’s logical viewport.
|
abstract LocationLayerOptions.Builder |
staleStateTimeout(long timeout)
Set the timeout before the location icon becomes stale.
|
abstract LocationLayerOptions.Builder |
trackingInitialMoveThreshold(float moveThreshold)
Sets minimum single pointer movement (map pan) in pixels required to break camera tracking.
|
abstract LocationLayerOptions.Builder |
trackingMultiFingerMoveThreshold(float moveThreshold)
Sets minimum multi pointer movement (map pan) in pixels required to break camera tracking
(for example during scale gesture).
|
public abstract LocationLayerOptions.Builder accuracyAlpha(float accuracyAlpha)
accuracyAlpha - the opacity of the accuracy viewpublic abstract LocationLayerOptions.Builder accuracyColor(int accuracyColor)
accuracyColor - the color of the accuracy viewpublic abstract LocationLayerOptions.Builder foregroundDrawableStale(@DrawableRes int foregroundDrawableStale)
foregroundDrawableStale - the drawable resource IDpublic abstract LocationLayerOptions.Builder foregroundStaleTintColor(java.lang.Integer foregroundStaleTintColor)
foregroundStaleTintColor - the color integer resourcepublic abstract LocationLayerOptions.Builder backgroundDrawableStale(@DrawableRes int backgroundDrawableStale)
backgroundDrawableStale - the drawable resource IDpublic abstract LocationLayerOptions.Builder backgroundStaleTintColor(java.lang.Integer backgroundStaleTintColor)
backgroundStaleTintColor - the color integer resourcepublic abstract LocationLayerOptions.Builder gpsDrawable(@DrawableRes int gpsDrawable)
gpsDrawable - the drawable resource IDpublic abstract LocationLayerOptions.Builder foregroundDrawable(@DrawableRes int foregroundDrawable)
foregroundDrawable - the drawable resource used for the foreground layerpublic abstract LocationLayerOptions.Builder backgroundDrawable(@DrawableRes int backgroundDrawable)
backgroundDrawable - the drawable resource IDpublic abstract LocationLayerOptions.Builder bearingDrawable(@DrawableRes int bearingDrawable)
bearingDrawable - the drawable resource IDpublic abstract LocationLayerOptions.Builder bearingTintColor(java.lang.Integer bearingTintColor)
bearingTintColor - the color integer resourcepublic abstract LocationLayerOptions.Builder foregroundTintColor(java.lang.Integer foregroundTintColor)
foregroundTintColor - the color integer resourcepublic abstract LocationLayerOptions.Builder backgroundTintColor(java.lang.Integer backgroundTintColor)
backgroundTintColor - the color integer resourcepublic abstract LocationLayerOptions.Builder elevation(@Dimension float elevation)
elevation - the elevation currently set for the location layer iconpublic abstract LocationLayerOptions.Builder enableStaleState(boolean enabled)
enabled - whether the stale state mode is enabled or notpublic abstract LocationLayerOptions.Builder staleStateTimeout(long timeout)
timeout - the duration in milliseconds which it should take before the location layer is
considered stalepublic abstract LocationLayerOptions.Builder padding(int[] padding)
When the value of this property is equal to {0,0,0,0}, viewport properties such as `centerCoordinate` assume a viewport that matches the map view’s frame. Otherwise, those properties are inset, excluding part of the frame from the viewport. For instance, if the only the top edge is inset, the map center is effectively shifted downward.
padding - The margins for the map in pixels (left, top, right, bottom).public abstract LocationLayerOptions.Builder maxZoom(double maxZoom)
The default maximum zoomn level is 22. The upper bound for this value is 25.5.
maxZoom - The new maximum zoom level.public abstract LocationLayerOptions.Builder minZoom(double minZoom)
minZoom - The new minimum zoom level.public abstract LocationLayerOptions.Builder trackingInitialMoveThreshold(float moveThreshold)
moveThreshold - the minimum movementpublic abstract LocationLayerOptions.Builder trackingMultiFingerMoveThreshold(float moveThreshold)
moveThreshold - the minimum movementpublic LocationLayerOptions build()
LocationLayerOptions class.LocationLayerOptions