turf-shift-longitude
turf.shift-longitude(layer)
Reads every point/vertex in every component of every feature in a geometry, and if the longitude coordinate is
Parameters
parameter | type | description |
---|---|---|
layer |
Object | any GeoJSON object |
Example
var shift = ;var point = type: 'Point' coordinates: -175 70 ;var shifted = ;//=shifted
Returns Object
, layer shifted GeoJSON object
Installation
Requires nodejs.
$ npm install turf-shift-longitude
Tests
$ npm test