diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 6cfee579aa..0c5f48d0a9 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -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