turf-boxaround
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

turf-boxaround

BoxAround

Finds a box around any feature or feature collection.

Parameters

  • Feature The shapes to get the box around.
  • options.paddingMeters The meters of padding to add to the shape on all sides. Defaults to 10,000 Meters

Examples

 
const polygon = turf.polygon([[
  [128, -26],
  [141, -26],
  [141, -21],
  [128, -21],
  [128, -26]
]]);
 
const boxPolygon = boxAround(polygon);
 

Readme

Keywords

Package Sidebar

Install

npm i turf-boxaround

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • nomadgraphix