DisplayOptions

  • DisplayOptions customizes the visual elements displayed during navigation, such as destination markers, stop signs, and traffic lights.

  • Developers can configure these options to control the level of detail shown on the route.

  • Methods like hideDestinationMarkers, showStopSigns, and showTrafficLights allow for specific customizations.

  • These settings influence the user interface during navigation, providing a tailored experience.

  • Changes to display options generally take effect in subsequent route requests.

public class DisplayOptions extends Object

Defines the options used by the Navigator for displaying a route to a destination.

Public Constructor Summary

Public Method Summary

boolean
getHideDestinationMarkers()
Returns a boolean indicating whether destination markers will be hidden.
DisplayOptions
hideDestinationMarkers(boolean hideDestinationMarkers)
Configures whether to hide destination markers when displaying a route.

Inherited Method Summary

Public Constructors

public DisplayOptions ()

Public Methods

public boolean getHideDestinationMarkers ()

Returns a boolean indicating whether destination markers will be hidden.

Returns
  • true if destination markers will be hidden

public DisplayOptions hideDestinationMarkers (boolean hideDestinationMarkers)

Configures whether to hide destination markers when displaying a route.

Parameters
hideDestinationMarkers If true, destination markers will be hidden.
Returns
  • the object for which the method was called, with the updated marker hiding setting