UNPKG

libre-routing

Version:

This library was generated with [Nx](https://nx.dev).

21 lines (20 loc) 600 B
import { LayerSpecification } from 'maplibre-gl'; import { LibreRouting } from '../../libre-routing'; import type { LibreRoutingPlugin } from '..'; export interface LayerConfig { before?: string; style: LayerSpecification | {}; } export interface LayersPluginOptions { layers: LayerConfig[]; } export declare class LayersPlugin implements LibreRoutingPlugin { private _options; private ctx; private options; private get map(); constructor(_options?: Partial<LayersPluginOptions>); onAdd(ctx: LibreRouting): void; onRemove(): void; private defaultConfig; }