#9257: Add the possibility to set styles in GeoJSONOptions via style-function and PathOptions

This commit is contained in:
Arne Schubert
2018-10-31 19:01:56 +01:00
parent 549360d30e
commit cac181f076
+2 -2
View File
@@ -817,7 +817,7 @@ export interface GeoJSONOptions<P = any> extends LayerOptions {
pointToLayer?(geoJsonPoint: geojson.Feature<geojson.Point, P>, 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<P = any> extends LayerOptions {
* }
* ```
*/
style?: StyleFunction<P>;
style?: PathOptions | StyleFunction<P>;
/**
* A Function that will be called once for each created Feature, after it