mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
#9257: Add the possibility to set styles in GeoJSONOptions via style-function and PathOptions
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user