public class MapboxMapOptions
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<MapboxMapOptions> |
CREATOR |
| Constructor and Description |
|---|
MapboxMapOptions()
Creates a new MapboxMapOptions object.
|
| Modifier and Type | Method and Description |
|---|---|
MapboxMapOptions |
accessToken(java.lang.String accessToken)
Specifies the accesstoken associated with a map view.
|
MapboxMapOptions |
attributionEnabled(boolean enabled)
Specifies the visibility state of a attribution for a map view.
|
MapboxMapOptions |
attributionGravity(int gravity)
Specifies the gravity state of attribution for a map view.
|
MapboxMapOptions |
attributionMargins(int[] margins)
Specifies the margin state of attribution for a map view
|
MapboxMapOptions |
camera(CameraPosition cameraPosition)
Specifies a the initial camera position for the map view.
|
MapboxMapOptions |
compassEnabled(boolean enabled)
Specifies the visibility state of a compass for a map view.
|
MapboxMapOptions |
compassGravity(int gravity)
Specifies the gravity state of compass for a map view.
|
MapboxMapOptions |
compassMargins(int[] margins)
Specifies the margin state of compass for a map view
|
static MapboxMapOptions |
createFromAttributes(android.content.Context context,
android.util.AttributeSet attrs)
Creates a GoogleMapsOptions from the attribute set
|
MapboxMapOptions |
debugActive(boolean enabled)
Specifies the used debug type for a map view.
|
int |
describeContents() |
java.lang.String |
getAccessToken()
Get the current configured access token for a map view.
|
boolean |
getAttributionEnabled()
Get the current configured visibility state for attribution for a map view.
|
int |
getAttributionGravity()
Get the current configured gravity state for attribution for a map view.
|
int[] |
getAttributionMargins()
Get the current configured margins for attribution for a map view.
|
CameraPosition |
getCamera()
Get the current configured initial camera position for a map view.
|
boolean |
getCompassEnabled()
Get the current configured visibility state for compass for a map view.
|
int |
getCompassGravity()
Get the current configured gravity state for compass for a map view.
|
int[] |
getCompassMargins()
Get the current configured margins for compass for a map view.
|
boolean |
getDebugActive()
Get the current configured debug state for a map view.
|
boolean |
getLocationEnabled()
Get the current configured user location view state for a map view.
|
boolean |
getLogoEnabled()
Get the current configured visibility state for compass for a map view.
|
int |
getLogoGravity()
Get the current configured gravity state for logo for a map view.
|
int[] |
getLogoMargins()
Get the current configured margins for logo for a map view.
|
float |
getMaxZoom()
Get the current configured maximum zoom for a map view.
|
float |
getMinZoom()
Get the current configured min zoom for a map view.
|
boolean |
getRotateGesturesEnabled()
Get the current configured rotate gesture state for a map view.
|
boolean |
getScrollGesturesEnabled()
Get the current configured scroll gesture state for a map view.
|
java.lang.String |
getStyle()
Get the current configured style url for a map view.
|
boolean |
getTiltGesturesEnabled()
Get the current configured tilt gesture state for a map view.
|
boolean |
getZoomControlsEnabled()
Get the current configured zoom controls state for a map view.
|
boolean |
getZoomGesturesEnabled()
Get the current configured zoom gesture state for a map view.
|
MapboxMapOptions |
locationEnabled(boolean locationEnabled)
Specifies if the user location view is enabled for a map view.
|
MapboxMapOptions |
logoEnabled(boolean enabled)
Specifies the visibility state of a logo for a map view.
|
MapboxMapOptions |
logoGravity(int gravity)
Specifies the gravity state of logo for a map view.
|
MapboxMapOptions |
logoMargins(int[] margins)
Specifies the margin state of logo for a map view
|
MapboxMapOptions |
maxZoom(float maxZoom)
Specifies the used maximum zoom level for a map view.
|
MapboxMapOptions |
minZoom(float minZoom)
Specifies the used minimum zoom level for a map view.
|
MapboxMapOptions |
rotateGesturesEnabled(boolean enabled)
Specifies if the rotate gesture is enabled for a map view.
|
MapboxMapOptions |
scrollGesturesEnabled(boolean enabled)
Specifies if the scroll gesture is enabled for a map view.
|
MapboxMapOptions |
styleUrl(java.lang.String styleUrl)
Specifies the style url associated with a map view.
|
MapboxMapOptions |
tiltGesturesEnabled(boolean enabled)
Specifies if the tilt gesture is enabled for a map view.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
MapboxMapOptions |
zoomControlsEnabled(boolean enabled)
Specifies if the zoom controls are enabled for a map view.
|
MapboxMapOptions |
zoomGesturesEnabled(boolean enabled)
Specifies if the zoom gesture is enabled for a map view.
|
public static final android.os.Parcelable.Creator<MapboxMapOptions> CREATOR
public MapboxMapOptions()
public static MapboxMapOptions createFromAttributes(android.content.Context context, android.util.AttributeSet attrs)
context - Context related to a map view.attrs - Attributeset containing configurationpublic MapboxMapOptions camera(CameraPosition cameraPosition)
cameraPosition - Inital camera positionpublic MapboxMapOptions accessToken(java.lang.String accessToken)
accessToken - Token to be used to access the servicepublic MapboxMapOptions styleUrl(java.lang.String styleUrl)
styleUrl - Url to be used to load a stylepublic MapboxMapOptions debugActive(boolean enabled)
enabled - True is debug is enabledpublic MapboxMapOptions minZoom(float minZoom)
minZoom - Zoom level to be usedpublic MapboxMapOptions maxZoom(float maxZoom)
maxZoom - Zoom level to be usedpublic MapboxMapOptions compassEnabled(boolean enabled)
enabled - True and compass is shownpublic MapboxMapOptions compassGravity(int gravity)
gravity - see Gravitypublic MapboxMapOptions compassMargins(int[] margins)
margins - 4 long array for LTRB marginspublic MapboxMapOptions logoEnabled(boolean enabled)
enabled - True and logo is shownpublic MapboxMapOptions logoGravity(int gravity)
gravity - see Gravitypublic MapboxMapOptions logoMargins(int[] margins)
margins - 4 long array for LTRB marginspublic MapboxMapOptions attributionEnabled(boolean enabled)
enabled - True and attribution is shownpublic MapboxMapOptions attributionGravity(int gravity)
gravity - see Gravitypublic MapboxMapOptions attributionMargins(int[] margins)
margins - 4 long array for LTRB marginspublic MapboxMapOptions rotateGesturesEnabled(boolean enabled)
enabled - True and gesture will be enabledpublic MapboxMapOptions scrollGesturesEnabled(boolean enabled)
enabled - True and gesture will be enabledpublic MapboxMapOptions tiltGesturesEnabled(boolean enabled)
enabled - True and gesture will be enabledpublic MapboxMapOptions zoomControlsEnabled(boolean enabled)
enabled - True and gesture will be enabledpublic MapboxMapOptions zoomGesturesEnabled(boolean enabled)
enabled - True and gesture will be enabledpublic MapboxMapOptions locationEnabled(boolean locationEnabled)
locationEnabled - True and gesture will be enabledpublic CameraPosition getCamera()
public float getMinZoom()
public float getMaxZoom()
public boolean getCompassEnabled()
public int getCompassGravity()
public int[] getCompassMargins()
public boolean getLogoEnabled()
public int getLogoGravity()
public int[] getLogoMargins()
public java.lang.String getAccessToken()
public java.lang.String getStyle()
public boolean getRotateGesturesEnabled()
public boolean getScrollGesturesEnabled()
public boolean getTiltGesturesEnabled()
public boolean getZoomControlsEnabled()
public boolean getZoomGesturesEnabled()
public boolean getAttributionEnabled()
public int getAttributionGravity()
public int[] getAttributionMargins()
public boolean getLocationEnabled()
public boolean getDebugActive()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable