An API-provider URL to make the routing requests to.
Any http://project-osrm.org/|OSRM-compatible or Directions API-compatible API-provider is supported.
Whether to support waypoints' https://docs.mapbox.com/api/navigation/directions/#optional-parameters|bearings.
A minimal amount of pixels a waypoint or the hoverpoint must be dragged in order for the drag-event to be
respected, and for network requests to be made when using refreshOnMove: true. Should be a number >= 0.
Any negative value is treated as 0.
The layers used by the plugin.
The value returned by the layersFactory|layersFactory invoked with the passed
options.pointsScalingFactor and
options.linesScalingFactor
Note that you don't have to create layers with the layersFactory|layersFactory. Any
LayerSpecification[] value is OK.
Note that if you add custom layers then you'd most probably want to register them as sensitive layers using
the options.sensitiveWaypointLayers,
options.sensitiveSnappointLayers,
options.sensitiveAltRoutelineLayers and
options.sensitiveRoutelineLayers options.
A factor by which all the default lines' dimensions should be increased. The value is passed as is to the
layersFactory|layersFactory's second argument.
Note that the option has no effect on the snaplines.
Note that the option has no effect when the layers option is provided.
Whether to make a request instead of a GET one.
Note that this is only supported by the Mapbox Directions API. Don't set the value to true if using an
OSRM-compatible API-provider.
A factor by which all the default points' dimensions should be increased. The value is passed as is to the
layersFactory|layersFactory's first argument.
Note that the option has no effect when the layers option is provided.
A routing profile to use. The value depends on the API-provider of choice.
Whether to update a route while dragging a waypoint/hoverpoint instead of only when dropping it
A list of the request-payload parameters that are passed along with routing requests.
Note that the access-token request-parameter has a special treatment when used along with
makePostRequest: true. It's automatically removed from the FormData and passed as a URL
query-parameter as the Mapbox Directions API https://docs.mapbox.com/api/navigation/http-post/|requires.
A timeout in ms after which a still-unresolved routing-request automatically gets aborted.
IDs of the layers that are used to represent the alternative route lines which should be interactive.
IDs of the layers that are used to represent the selected route line which should be interactive.
IDs of the layers that are used to represent the snappoints which should be interactive.
IDs of the layers that are used to represent the waypoints which should be interactive.
A name of the source used by the instance. Also used as a prefix for the default layers' names.
Note that if you decide to set this field to some custom value, you'd also need to update the following settings accordingly: sensitiveWaypointLayers, sensitiveSnappointLayers, sensitiveRoutelineLayers and sensitiveAltRoutelineLayers.
The default|MapLibreGlDirections configuration object's interface.