RouteToolSettings
color: string
The color of the element in some CSS-like format.
"#ABC123";
"rgb(255, 0, 0)";
"hsl(200, 100%, 50%)";
strokeOpacity: number
A value between 0 and 1 that describes the opacity of the element's stroke.
strokeWidth: number
The width of the element's stroke in pixels.
strokeStyle: "solid" | "dashed" | "dotted"
The style of the element's stroke.
distanceMarker: boolean
Whether a distance marker is shown at the midpoint of the path.
routingMode: null | "driving" | "cycling" | "walking" | "flying"
Whether this represents a route, and if so, what mode of transport is used.
If this is null, the path is not considered to be a route, so while it can have a distanceMarker, it will does not have a start or end cap.
endCaps: boolean
Whether or not to show Start and End caps on the path. This is only available if the routingMode is set.
showInspector: boolean
Whether to show the tool inspector.
false
Last updated