Merge pull request #2963 from enternet/patch-1

Minor fixes
This commit is contained in:
Masahiro Wakame 2014-10-14 11:15:57 +09:00
commit 18ae0809e8

10
leaflet/leaflet.d.ts vendored
View File

@ -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