mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
commit
18ae0809e8
10
leaflet/leaflet.d.ts
vendored
10
leaflet/leaflet.d.ts
vendored
@ -418,7 +418,8 @@ declare module L {
|
||||
on(type: string, fn: (e: LeafletEvent) => void, context?: any): Layers;
|
||||
once(type: string, fn: (e: LeafletEvent) => void, context?: any): Layers;
|
||||
off(type: string, fn?: (e: LeafletEvent) => void, context?: any): Layers;
|
||||
fire(type: string, data?: any): Layers; addEventListener(eventMap: any, context?: any): Layers;
|
||||
fire(type: string, data?: any): Layers;
|
||||
addEventListener(eventMap: any, context?: any): Layers;
|
||||
removeEventListener(eventMap?: any, context?: any): Layers;
|
||||
clearAllEventListeners(): Layers;
|
||||
on(eventMap: any, context?: any): Layers;
|
||||
@ -909,6 +910,11 @@ declare module L {
|
||||
* Changes styles of GeoJSON vector layers with the given style function.
|
||||
*/
|
||||
setStyle(style: (featureData: any) => any): GeoJSON;
|
||||
|
||||
/**
|
||||
* Changes styles of GeoJSON vector layers with the given style options.
|
||||
*/
|
||||
setStyle(style: PathOptions): GeoJSON;
|
||||
|
||||
/**
|
||||
* Resets the the given vector layer's style to the original GeoJSON style,
|
||||
@ -4052,7 +4058,7 @@ declare module L {
|
||||
/**
|
||||
* Trims the whitespace from both ends of the string and returns the result.
|
||||
*/
|
||||
static trim(str: string): boolean;
|
||||
static trim(str: string): string;
|
||||
|
||||
/**
|
||||
* Data URI string containing a base64-encoded empty GIF image. Used as a hack
|
||||
|
||||
Loading…
Reference in New Issue
Block a user