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 |
int |
CALLOUT_PANEL_MAX_LINES |
boolean |
HIDE_ACCESSIBILITY_BUTTON |
boolean |
HIDE_BANNER_MESSAGE |
boolean |
HIDE_DIRECTIONS_CONTROLS |
boolean |
HIDE_LEVELS_CONTROL |
boolean |
HIDE_LOADING_SPINNER |
boolean |
HIDE_LOCATION_BUTTON |
boolean |
HIDE_MAP_LABEL |
boolean |
HIDE_MENU_BUTTON |
boolean |
HIDE_OVERVIEW_BUTTON |
boolean |
HIDE_SELECTED_MARKER_PIN |
boolean |
HIDE_STEP_LABEL |
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
public boolean HIDE_OVERVIEW_BUTTON
public boolean HIDE_LOCATION_BUTTON
public boolean HIDE_MAP_LABEL
public boolean HIDE_LOADING_SPINNER
public boolean HIDE_STEP_LABEL
public boolean HIDE_ACCESSIBILITY_BUTTON
public boolean HIDE_MENU_BUTTON
public boolean HIDE_DIRECTIONS_CONTROLS
public boolean HIDE_SELECTED_MARKER_PIN
public boolean HIDE_BANNER_MESSAGE
public int ACCENT_COLOR
public int PLACEMARK_FONT_SIZE
Size of a placemarks label in dp.
public int CALLOUT_PANEL_MAX_LINES
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