maplibre-gl-compass
Version:
A heading-up compass for MapLibre GL JS
13 lines (12 loc) • 332 B
TypeScript
export declare class CompassButton {
private button;
private clickCallback;
constructor(parent: HTMLElement, visible?: boolean);
on(type: string, callback: () => void): void;
turnOn(): void;
turnOff(): void;
disable(): void;
startLoading(): void;
stopLoading(): void;
private createButton;
}