-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
37 lines (33 loc) · 920 Bytes
/
index.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
28
29
30
31
32
33
34
35
36
37
import { Layer, Control, DomUtil } from 'leaflet';
import { LayerContainer, Map, MapControl, MapControlProps } from 'react-leaflet';
export interface baseLayer {
name: string;
title: string;
}
export interface overlay {
checked: boolean;
groupTitle: string;
name: string;
title: string;
}
export interface RLGLCProps extends MapControlProps {
baseLayers: Array<baseLayer>;
checkedBaseLayer: string;
exclusiveGroups?: Array<string>;
overlays?: Array<overlay>;
onBaseLayerChange?(id: string): void;
onOverlayChange?(newOverlays: Array<overlay> ): void
leaflet?: {
map?: Map;
pane?: string;
layerContainer?: LayerContainer;
popupContainer?: Layer;
}
}
export class ReactLeafletGroupedLayerControl extends MapControl<RLGLCProps> {
public div: HTMLElement;
public groups: Array<string>;
public state: { open: boolean };
public props: RLGLCProps;
public id: number;
}