npm install turf-size
turf size module
Takes a bbox and returns a new bbox with a size expanded or contracted
by a factor of X.
| parameter | type | description |
| --------- | -------------- | ------------------------------------------- |
| bbox | Array.
| factor | number | the ratio of the new bbox to the input bbox |
``js
var bbox = [0, 0, 10, 10]
var resized = turf.size(bbox, 2);
var features = turf.featurecollection([
turf.bboxPolygon(bbox),
turf.bboxPolygon(resized)]);
//=features
`
Requires nodejs.
`sh`
$ npm install turf-size
`sh``
$ npm test