turf-merge
merge polygons
turf.merge(fc)
Takes a FeatureCollection of Polygon features and outputs a single merged polygon feature.
Parameters
parameter | type | description |
---|---|---|
fc |
FeatureCollection | - a FeatureCollection of Polygon features |
Example
var poly1 = turf;poly1propertiesfill = '#0f0';var poly2 = turf;poly2propertiesfill = '#00f'; var polygons = turf; var merged = turf; //=polygons //=merged
Installation
Requires nodejs.
$ npm install turf-merge
Tests
$ npm test