Creates an instance of LoadingControl that could be added to the map using the https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addcontrol|addControl method.

Example

import MapLibreGlDirections, { LoadingControl } from "@maplibre/maplibre-gl-directions";
map.addControl(new LoadingControl(new MapLibreGlDirections(map)));

Hierarchy

  • LoadingIndicatorControl

Implements

  • IControl

Constructors

Properties

controlElement: HTMLElement
directions: default

Methods

Generated using TypeDoc