turf-linestring
turf lineString module
turf.linestring(coordinates, properties)
Creates a LineString Feature based on a coordinate array. Properties can be added optionally.
Parameters
parameter | type | description |
---|---|---|
coordinates |
Array.<Array.> | - an array of Positions |
properties |
Object | an Object consisting of key-value pairs to add as properties |
Example
var linestring1 = turf;var linestring2 = turf; //=linestring1 //=linestring2
Installation
Requires nodejs.
$ npm install turf-linestring
Tests
$ npm test