turf-extent
turf extent module
turf.extent(input)
Takes any GeoJSON object, calculates the extent of all input features, and returns a bounding box.
Parameters
parameter | type | description |
---|---|---|
input |
GeoJSON | any valid GeoJSON Object |
Example
var input = turf; var bbox = turf; var bboxPolygon = turf;bboxPolygonpropertiesfill = '#00f'; var result = turf; //=result
Installation
Requires nodejs.
$ npm install turf-extent
Tests
$ npm test