turf multipolygon module
npm install turf-multipolygon
turf multipolygon module
Creates a Feature based on a
coordinate array. Properties can be added optionally.
| parameter | type | description |
| ------------- | ---------------------------- | ------------------------------------------------------------- |
| coordinates | Array\.\
| properties | Object | _optional:_ an Object of key-value pairs to add as properties |
``js
var multiPoly = turf.multipolygon([[0,0],[10,10]]);
//=multiPoly
`
Returns Feature., a multipolygon feature
Requires nodejs.
`sh`
$ npm install turf-multipolygon
`sh``
$ npm test