Class MapOptions
- All Implemented Interfaces:
Serializable
MapView
and MapFragment
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The color used to tint buttons on the map.int
The number of lines of text used to display placemark detail information.boolean
Iftrue
, hide the accessibility button when the map is displaying a route.boolean
Iftrue
, always hide the banner message.boolean
Iftrue
, hide the directions control when a route is loaded.boolean
Iftrue
, hide the level picker control.boolean
Iftrue
, hide the loading spinner.boolean
Iftrue
, hide the location button.boolean
Iftrue
, hide the map label.boolean
Iftrue
, hide the overview button.boolean
Iftrue
, hide the selected marker (pin).boolean
Deprecated.int
Size of a placemarks label in dp.boolean
Iftrue
, move the location button and map label to accomodate the bottom sheet. -
Constructor Summary
ConstructorsConstructorDescriptionMapOptions
(MapOptions fromOptions) Initializes this MapOptions instance by copying the values of the given MapOptions instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromAttributes
(Context context, 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
A static factory method for getting a default options object.static MapOptions
getFromAttributes
(Context context, 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 panelvoid
setTextSize
(int sizeInDP) Sets the placemark markers text size
-
Field Details
-
HIDE_LEVELS_CONTROL
public boolean HIDE_LEVELS_CONTROLIftrue
, hide the level picker control.The default is false.
The level picker control takes users to other maps.
-
HIDE_OVERVIEW_BUTTON
public boolean HIDE_OVERVIEW_BUTTONIftrue
, hide the overview button.The default is false.
The overview button allows users to navigate to the overview map, if one exists.
-
HIDE_LOCATION_BUTTON
public boolean HIDE_LOCATION_BUTTONIftrue
, 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.
-
HIDE_MAP_LABEL
public boolean HIDE_MAP_LABELIftrue
, hide the map label.The default is false.
The map label indicates the map name and building name of the current map.
-
HIDE_LOADING_SPINNER
public boolean HIDE_LOADING_SPINNERIftrue
, hide the loading spinner.The default is false.
The loading spinner is a visual indication that content is loading.
-
HIDE_ACCESSIBILITY_BUTTON
public boolean HIDE_ACCESSIBILITY_BUTTONIftrue
, 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.
-
HIDE_DIRECTIONS_CONTROLS
public boolean HIDE_DIRECTIONS_CONTROLSIftrue
, 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.
-
HIDE_SELECTED_MARKER_PIN
public boolean HIDE_SELECTED_MARKER_PINIftrue
, hide the selected marker (pin).The default is false.
The selected marker (pin) is displayed when a placemark is selected.
-
HIDE_BANNER_MESSAGE
public boolean HIDE_BANNER_MESSAGEIftrue
, 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”)
-
HIDE_WATERMARK
Deprecated.Deprecated: the watermark has been removed from the map. -
USE_BOTTOMSHEET
public boolean USE_BOTTOMSHEETIftrue
, move the location button and map label to accomodate the bottom sheet.The default is false.
-
ACCENT_COLOR
The color used to tint buttons on the map. -
PLACEMARK_FONT_SIZE
public int PLACEMARK_FONT_SIZESize of a placemarks label in dp. -
CALLOUT_PANEL_MAX_LINES
public int CALLOUT_PANEL_MAX_LINESThe number of lines of text used to display placemark detail information.The default is 2.
-
-
Constructor Details
-
MapOptions
Initializes this MapOptions instance by copying the values of the given MapOptions instance.- Parameters:
fromOptions
- The options to copy.
-
-
Method Details
-
getDefaultOptions
A static factory method for getting a default options object. -
getFromAttributes
A static factory method for getting a default options object with the provided attributes. -
set
Sets this MapOptions values to that of another MapOptions. -
fromAttributes
For use with the creation of MapViews from XML, simply pass the attributes and the MapOption will set itself up appropriately. -
setTextSize
public void setTextSize(int sizeInDP) Sets the placemark markers text size- Parameters:
sizeInDP
- text size (in DP)
-
setCalloutPanelMaxLines
public void setCalloutPanelMaxLines(int maxLines) Sets the max number of lines to show in the callout panel- Parameters:
maxLines
- max number of lines
-