Creates an instance of BearingsControl that could be added to the map using the https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addcontrol|addControl method.
addControl
import MapLibreGlDirections, { BearingsControl } from "@maplibre/maplibre-gl-directions";map.addControl(new BearingsControl(new MapLibreGlDirections(map))); Copy
import MapLibreGlDirections, { BearingsControl } from "@maplibre/maplibre-gl-directions";map.addControl(new BearingsControl(new MapLibreGlDirections(map)));
Optional
Private
Readonly
Generated using TypeDoc
Creates an instance of BearingsControl that could be added to the map using the https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addcontrol|
addControl
method.Example