UNPKG

protomaps-leaflet

Version:

Vector tile rendering and labeling for [Leaflet](https://github.com/Leaflet/Leaflet).

29 lines (28 loc) 775 B
import { PMTiles } from "pmtiles"; import { LabelRule } from "../labeler"; import { PaintRule } from "../painter"; import { SourceOptions } from "../view"; declare type Status = { status: string; value?: unknown; reason: Error; }; interface LeafletLayerOptions { bounds?: number[][]; attribution?: string; debug?: string; lang?: string; tileDelay?: number; language?: string[]; noWrap?: boolean; paintRules?: PaintRule[]; labelRules?: LabelRule[]; tasks?: Promise<Status>[]; maxDataZoom?: number; url?: PMTiles | string; sources?: Record<string, SourceOptions>; theme?: string; backgroundColor?: string; } declare const leafletLayer: (options?: LeafletLayerOptions) => unknown; export { leafletLayer };