-
Notifications
You must be signed in to change notification settings - Fork 1
/
leaflet.d.ts
27 lines (24 loc) · 1001 Bytes
/
leaflet.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as L from "leaflet";
interface BigGeoJSONOptions extends GeoJSONOptions {
maxZoom?: number; // max zoom to preserve detail on
indexMaxZoom?: number; // max zoom in the tile index
indexMaxPoints?: number; // max number of points per tile in the tile index
tolerance?: number; // simplification tolerance (higher means simpler)
extent?: number; // tile extent
buffer?: number; // tile buffer on each side
lineMetrics?: boolean; // whether to calculate line metrics
promoteId?: string | null; // name of a feature property to be promoted to feature.id
generateId?: boolean; // whether to generate feature ids. Cannot be used with promoteId
debug?: number;
style?: ((feature: any) => object) | object;
}
declare module "leaflet" {
export function bigGeoJson(
geojson: GeoJsonObject,
options: BigGeoJSONOptions
);
export function leafletGeotiff(url: string, options: any);
declare namespace LeafletGeotiff {
export function plotty(options: any);
}
}