-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.d.ts
28 lines (25 loc) · 836 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
/// <reference types="leaflet" />
import * as L from 'leaflet';
declare module 'leaflet' {
interface GeoserverOptions {
layers?: string;
format?: string;
transparent?: boolean;
CQL_FILTER?: string;
zIndex?: number;
version?: string;
srsname?: string;
attribution?: string;
fitLayer?: boolean;
style?: string;
onEachFeature?: (feature: any, layer?: Layer) => void;
width?: number;
height?: number;
}
namespace Geoserver {
export function wms(baseLayerUrl: string, options?: GeoserverOptions): L.TileLayer.WMS;
export function wfs(baseLayerUrl: string, options?: GeoserverOptions): any;
export function legend(baseLayerUrl: string, options?: GeoserverOptions): L.Control;
export function wmsImage(baseLayerUrl: string, options?: GeoserverOptions): any;
}
}