0.0.1 • Published 9 years ago

turf-shift-longitude v0.0.1

Weekly downloads
7
License
ISC
Repository
github
Last release
9 years ago

turf-shift-longitude

build status

turf.shift-longitude(layer)

Reads every point/vertex in every component of every feature in a geometry, and if the longitude coordinate is

Parameters

parametertypedescription
layerObjectany GeoJSON object

Example

var shift = require('turf-shift-longitude');
var point = { type: 'Point', coordinates: [-175, 70] };
var shifted = shift(point);
//=shifted

Returns Object, layer shifted GeoJSON object

Installation

Requires nodejs.

$ npm install turf-shift-longitude

Tests

$ npm test