From cac181f076b8b21962c8df063f0178cf4094d6ef Mon Sep 17 00:00:00 2001 From: Arne Schubert Date: Wed, 31 Oct 2018 19:01:56 +0100 Subject: [PATCH] #9257: Add the possibility to set styles in GeoJSONOptions via style-function and PathOptions --- types/leaflet/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 8402d8bc9b..c6b97e3b28 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -817,7 +817,7 @@ export interface GeoJSONOptions

extends LayerOptions { pointToLayer?(geoJsonPoint: geojson.Feature, latlng: LatLng): Layer; // should import GeoJSON typings /** - * A Function defining the Path options for styling GeoJSON lines and polygons, + * PathOptions or a Function defining the Path options for styling GeoJSON lines and polygons, * called internally when data is added. * * The default value is to not override any defaults: @@ -828,7 +828,7 @@ export interface GeoJSONOptions

extends LayerOptions { * } * ``` */ - style?: StyleFunction

; + style?: PathOptions | StyleFunction

; /** * A Function that will be called once for each created Feature, after it