maplibre-gl-layer
Version:
A layer control for MapLibre GL JS
13 lines (12 loc) • 477 B
TypeScript
import { ControlPosition } from 'maplibre-gl';
import { LayerControlOptions, Layer } from '../maplibre-gl-layer';
export declare class LayerDialog {
private dialog;
private options;
private layerChangeCallback;
constructor(options: LayerControlOptions, defaultLayer: Layer);
open(button: HTMLButtonElement, position?: ControlPosition | null): void;
close(): void;
on(type: string, callback: (layer: Layer) => void): void;
private setPosition;
}