Minor fixes

1) GeoJSON.setStyle(style: PathOptions)
2) trim(str: string): string
2) CRLF missed
This commit is contained in:
enternet 2014-10-13 16:53:06 +03:00
parent bba33bcb0b
commit e43d77cffb

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