UNPKG

maplibre-gl-layer

Version:
13 lines (12 loc) 477 B
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; }