public class MapOptions
extends java.lang.Object
implements java.io.Serializable
A serializable options object for use with MapView
and MapFragment
.
Modifier and Type | Field and Description |
---|---|
int |
ACCENT_COLOR
The color used to tint buttons on the map.
|
int |
CALLOUT_PANEL_MAX_LINES
The number of lines of text used to display placemark detail information.
|
boolean |
HIDE_ACCESSIBILITY_BUTTON
If
true , hide the accessibility button when the map is displaying a route. |
boolean |
HIDE_BANNER_MESSAGE
If
true , always hide the banner message. |
boolean |
HIDE_DIRECTIONS_CONTROLS
If
true , hide the directions control when a route is loaded. |
boolean |
HIDE_LEVELS_CONTROL
If
true , hide the level picker control. |
boolean |
HIDE_LOADING_SPINNER
If
true , hide the loading spinner. |
boolean |
HIDE_LOCATION_BUTTON
If
true , hide the location button. |
boolean |
HIDE_MAP_LABEL
If
true , hide the map label. |
boolean |
HIDE_OVERVIEW_BUTTON
If
true , hide the overview button. |
boolean |
HIDE_SELECTED_MARKER_PIN
If
true , hide the selected marker (pin). |
boolean |
HIDE_WATERMARK
If
true , hide the Aruba watermark at the top of the map. |
int |
PLACEMARK_FONT_SIZE
Size of a placemarks label in dp.
|
Constructor and Description |
---|
MapOptions(MapOptions fromOptions)
Initializes this MapOptions instance by copying the values of the given MapOptions instance.
|
Modifier and Type | Method and Description |
---|---|
void |
fromAttributes(android.content.Context context,
android.util.AttributeSet attrs)
For use with the creation of MapViews from XML, simply pass the attributes and the MapOption will set itself up appropriately.
|
static MapOptions |
getDefaultOptions()
A static factory method for getting a default options object.
|
static MapOptions |
getFromAttributes(android.content.Context context,
android.util.AttributeSet attrs)
A static factory method for getting a default options object with the provided attributes.
|
void |
set(MapOptions options)
Sets this MapOptions values to that of another MapOptions.
|
void |
setCalloutPanelMaxLines(int maxLines)
Sets the max number of lines to show in the callout panel
|
void |
setTextSize(int sizeInDP)
Sets the placemark markers text size
|
public boolean HIDE_LEVELS_CONTROL
If true
, hide the level picker control. The default is false.
The level picker control takes users to other maps.
public boolean HIDE_OVERVIEW_BUTTON
If true
, hide the overview button. The default is false.
The overview button allows users to navigate to the overview map, if one exists.
public boolean HIDE_LOCATION_BUTTON
If true
, hide the location button. The default is false.
The location button shows the user’s current location on the map. If their location is on a different map, the map view will switch to the map that contains the user’s location.
public boolean HIDE_MAP_LABEL
If true
, hide the map label. The default is false.
The map label indicates the map name and building name of the current map.
public boolean HIDE_LOADING_SPINNER
If true
, hide the loading spinner. The default is false.
The loading spinner is a visual indication that content is loading.
public boolean HIDE_ACCESSIBILITY_BUTTON
If true
, hide the accessibility button when the map is displaying a route. The default is false.
The accessibility button allows the user to toggle a persistent preference to use either the shortest or the most accessible route. Toggling the preference will cause the map to reload the current route.
public boolean HIDE_DIRECTIONS_CONTROLS
If true
, hide the directions control when a route is loaded. The default is false.
The directions control allows users to see information about a route and traverse its steps.
public boolean HIDE_SELECTED_MARKER_PIN
If true
, hide the selected marker (pin). The default is false.
The selected marker (pin) is displayed when a placemark is selected.
public boolean HIDE_BANNER_MESSAGE
If true
, always hide the banner message. The default is false.
The banner message is used to display information in a temporary message at the top of the map. (ex. “Reorient yourself to the directions line”)
public boolean HIDE_WATERMARK
If true
, hide the Aruba
watermark at the top of the map. The default is false.
public int ACCENT_COLOR
The color used to tint buttons on the map.
public int PLACEMARK_FONT_SIZE
Size of a placemarks label in dp.
public int CALLOUT_PANEL_MAX_LINES
The number of lines of text used to display placemark detail information. The default is 2.
public MapOptions(MapOptions fromOptions)
Initializes this MapOptions instance by copying the values of the given MapOptions instance.
fromOptions
- The options to copy.public static MapOptions getDefaultOptions()
A static factory method for getting a default options object.
public static MapOptions getFromAttributes(android.content.Context context, android.util.AttributeSet attrs)
A static factory method for getting a default options object with the provided attributes.
public void set(MapOptions options)
Sets this MapOptions values to that of another MapOptions.
public void fromAttributes(android.content.Context context, android.util.AttributeSet attrs)
For use with the creation of MapViews from XML, simply pass the attributes and the MapOption will set itself up appropriately.
public void setTextSize(int sizeInDP)
Sets the placemark markers text size
sizeInDP
- text size (in DP)public void setCalloutPanelMaxLines(int maxLines)
Sets the max number of lines to show in the callout panel
maxLines
- max number of lines