Class DirectionsOptions

java.lang.Object
com.arubanetworks.meridian.maps.directions.DirectionsOptions
All Implemented Interfaces:
Serializable

public class DirectionsOptions extends Object implements Serializable
A serializable options object for use with MapView and MapFragment.
See Also:
  • Field Details

    • DIRECTIONS_CALLOUT_COLOR

      @ColorInt public int DIRECTIONS_CALLOUT_COLOR
      Background color used for directions callout.
    • DIRECTIONS_SLIDE_COLOR

      @ColorInt public int DIRECTIONS_SLIDE_COLOR
      Background color used for directions slide.
    • DIRECTIONS_INSTRUCTIONS_TEXT_COLOR

      @ColorInt public int DIRECTIONS_INSTRUCTIONS_TEXT_COLOR
      Color for directions instruction text and arrows.

      Make sure to test dark theme with any values set here because they don’t always work.

    • ROUTE_OVERVIEW_BUTTON_COLOR

      @ColorInt public int ROUTE_OVERVIEW_BUTTON_COLOR
      Background color used for route overview button.
    • ROUTE_OVERVIEW_BUTTON_TEXT_COLOR

      @ColorInt public int ROUTE_OVERVIEW_BUTTON_TEXT_COLOR
      Text color for route overview button.
    • END_ROUTE_BUTTON_COLOR

      @ColorInt public int END_ROUTE_BUTTON_COLOR
      Background color used for route end button.
    • END_ROUTE_BUTTON_TEXT_COLOR

      @ColorInt public int END_ROUTE_BUTTON_TEXT_COLOR
      Text color used for route end button.
    • REORIENTATION_BANNER_COLOR

      @ColorInt public int REORIENTATION_BANNER_COLOR
      Background color used for re-orientation banner.
    • DIRECTIONS_INSTRUCTIONS_ON_TOP

      public boolean DIRECTIONS_INSTRUCTIONS_ON_TOP
      If true, the directions text is inverted so that instructions is above distance.

      By default directions text has distance on top and instructions on the bottom.

  • Constructor Details

    • DirectionsOptions

      public DirectionsOptions(DirectionsOptions fromOptions)
      Initializes this DirectionsOptions instance by copying the values of the given DirectionsOptions instance.
      Parameters:
      fromOptions - The options to copy.
  • Method Details

    • getDefaultOptions

      public static DirectionsOptions getDefaultOptions()
      A static factory method for getting a default options object.
    • getFromAttributes

      public static DirectionsOptions getFromAttributes(Context context, AttributeSet attrs)
      A static factory method for getting a default options object with the provided attributes.
    • set

      public void set(DirectionsOptions options)
      Sets this DirectionsOptions values to that of another DirectionsOptions.
    • fromAttributes

      public void fromAttributes(Context context, AttributeSet attrs)
      For use with the creation of MapViews from XML, simply pass the attributes and the DirectionsOption will set itself up appropriately.