turf-multipoint
v1.0.0
Published
turf multipoint module
Downloads
36
Maintainers
Readme
turf-multipoint
turf multipoint module
turf.multipoint(coordinates, properties)
Creates a Feature based on a coordinate array. Properties can be added optionally.
Parameters
| parameter | type | description |
| ------------- | ---------------------------- | ------------------------------------------------------------- |
| coordinates
| Array.<Array.<Number>> | an array of Positions |
| properties
| Object | optional: an Object of key-value pairs to add as properties |
Example
var multiPt = turf.multipoint([[0,0],[10,10]]);
//=multiPt
Returns Feature.<MultiPoint>
, a MultiPoint feature
Installation
Requires nodejs.
$ npm install turf-multipoint
Tests
$ npm test