maplibre-gl-opacity
Version:
maplibre-gl-opacity is a MapLibre GL JS plugin that makes multiple tile layers transparent.
15 lines (14 loc) • 430 B
TypeScript
import './style.css';
import type { IControl, Map } from 'maplibre-gl';
type OpacityControlOptions = {
baseLayers: Record<string, string>;
overLayers: Record<string, string>;
opacityControl: boolean;
};
declare class OpacityControl implements IControl {
#private;
constructor(options: Partial<OpacityControlOptions>);
onAdd(map: Map): HTMLDivElement;
onRemove(): void;
}
export default OpacityControl;