featureReduce
Description
Reduce features in any GeoJSON object, similar to Array.reduce().
Parameters
Name | Type | Description |
---|---|---|
geojson | FeatureCollection | Feature | Geometry | any GeoJSON object |
callback | Function | a method that takes (previousValue, currentFeature, featureIndex) |
initialValue? | * | Value to use as the first argument to the first call of the callback. |