Package com.arubanetworks.meridian.maps
Class MapOptions
java.lang.Object
com.arubanetworks.meridian.maps.MapOptions
- All Implemented Interfaces:
Serializable
A serializable options object for use with
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
If <code>true</code>, hide the accessibility button when the map is displaying a route.boolean
If <code>true</code>, always hide the banner message.boolean
If <code>true</code>, hide the directions callout when a route is loaded.boolean
If <code>true</code>, hide the directions control when a route is loaded.boolean
If <code>true</code>, hide the level picker control.boolean
If <code>true</code>, hide the loading spinner.boolean
If <code>true</code>, hide the location button.boolean
If <code>true</code>, hide the map label.boolean
If <code>true</code>, hide the overview button.boolean
If <code>true</code>, hide the selected marker (pin).boolean
Deprecated.int
Size of a placemarks label in dp.boolean
If <code>true</code>, 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_CONTROLIf <code>true</code>, hide the level picker control.<p>The default is false.</p> <p>The level picker control takes users to other maps.</p> -
HIDE_OVERVIEW_BUTTON
public boolean HIDE_OVERVIEW_BUTTONIf <code>true</code>, hide the overview button.<p>The default is false.</p> <p>The overview button allows users to navigate to the overview map, if one exists.</p> -
HIDE_LOCATION_BUTTON
public boolean HIDE_LOCATION_BUTTONIf <code>true</code>, hide the location button.<p>The default is false.</p> <p>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.</p> -
HIDE_MAP_LABEL
public boolean HIDE_MAP_LABELIf <code>true</code>, hide the map label.<p>The default is false.</p> <p>The map label indicates the map name and building name of the current map.</p> -
HIDE_LOADING_SPINNER
public boolean HIDE_LOADING_SPINNERIf <code>true</code>, hide the loading spinner.<p>The default is false.</p> <p>The loading spinner is a visual indication that content is loading.</p> -
HIDE_ACCESSIBILITY_BUTTON
public boolean HIDE_ACCESSIBILITY_BUTTONIf <code>true</code>, hide the accessibility button when the map is displaying a route.<p>The default is false.</p> <p>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.</p> -
HIDE_DIRECTIONS_CONTROLS
public boolean HIDE_DIRECTIONS_CONTROLSIf <code>true</code>, hide the directions control when a route is loaded.<p>The default is false.</p> <p>The directions control allows users to see information about a route and traverse its steps.</p> -
HIDE_DIRECTIONS_CALLOUT
public boolean HIDE_DIRECTIONS_CALLOUTIf <code>true</code>, hide the directions callout when a route is loaded.<p>The default is false.</p> <p>The directions callout allows users to see the route overview and end directions. This value is only used if HIDE_DIRECTIONS_CONTROLS is false</p> -
HIDE_SELECTED_MARKER_PIN
public boolean HIDE_SELECTED_MARKER_PINIf <code>true</code>, hide the selected marker (pin).<p>The default is false.</p> <p>The selected marker (pin) is displayed when a placemark is selected.</p> -
HIDE_BANNER_MESSAGE
public boolean HIDE_BANNER_MESSAGEIf <code>true</code>, always hide the banner message.<p>The default is false.</p> <p>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”)</p> -
HIDE_WATERMARK
Deprecated.Deprecated: the watermark has been removed from the map. -
USE_BOTTOMSHEET
public boolean USE_BOTTOMSHEETIf <code>true</code>, move the location button and map label to accomodate the bottom sheet.<p>The default is false.</p> -
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.<p>The default is 2.</p>
-
-
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
-