Skip to content

Creates a box around any GeoJSON feature or feature collection.

Notifications You must be signed in to change notification settings

AustinHunt/turf-boxaround

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Creates a box around any GeoJSON feature or feature collection.

Resources

Stars

Watchers

Forks

Packages

No packages published