6.5.0 • Published 2 days ago

@turf/bbox v6.5.0

Weekly downloads
378,202
License
MIT
Repository
github
Last release
2 days ago

@turf/bbox

bbox

Takes a set of features, calculates the bbox of all input features, and returns a bounding box.

Parameters

Examples

var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);
var bbox = turf.bbox(line);
var bboxPolygon = turf.bboxPolygon(bbox);

//addToMap
var addToMap = [line, bboxPolygon]

Returns BBox bbox extent in minX, minY, maxX, maxY order


This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @turf/bbox

Or install the Turf module that includes it as a function:

$ npm install @turf/turf
@mapbox-ts/mapbox-gl-directionsairsiders-mapping-tool@chargetrip/javascript-sdk@mahdi-esbati/react-mapbox-glregen-components@meat_packages/hb-map-display-componentgeojson-distance@infinitebrahmanuniverse/nolb-_turdrone_3ddrone_view_3d@foresting-tomorrow/database_lib@hopara/hoparathing-it-serverkortxyz-mapedocu-sdk@everything-registry/sub-chunk-941@mblomdahl/mapbox-gl-circledirty-reprojectorscpal-componentsdecklyeatlaseatlas-lets-bet-covideatlas-letsbeatcovidduev-endangered-areas-nrwunion-subdivided-polygonsuntd-mapdrone_viewngx-mapbox-gl-patchocad2geojson-demovoronoigeomview-geojsonvtileeoxcvelo.glol-elevation-parser@terascope/utilscustom-plotly.jscustomised-viewerdiachronic-atlasnebula.glneonmaps-search-addressnaksha-component-react-restructurednaksha-component-react-restructured-2naksha-gmaps-draw-test@loudsrl/turf@mapbox/cardboard-metadata@mapbox/carmen@mapbox/carmen-private@mapbox/geojson-thumbnail@peripleo/peripleo@pinecast/react-mapbox-glreact-mapbox-glreact-mapbox-gl-extendedreact-mapbox-gl-masterreact-mapbox-gl-sstareact-mapbox-gl-typingfixreact-mapbox-gl-with-ts-typesreact-maplibre-glreact-mapgl-with-deck-geojson-components@oada/fields-module@pedanticlabs/minimal-ui@platyplus/gis@plasmastrapi/geometry@terralego/corereact-mablibre-glhafas-find-stations@shitao1988/swsk-kepler-gl@shitao1988/swsk-react-mapbox-gl@sheerun/react-mapbox-gl@shitao1988/swsk.kepler.gl@oidajs/core@pplsohampatel/terriajs@newcrom/plotly.js@opentripplanner/transitive-overlay@kylebarron/snap-features-to-tin@kyfe/kyemap-jsyymap-turf@mickeyjohn/geojson-rbush@leuven2030/uigeofindergeoexgeovectorgeoverviewgeojson-cli-bboxgeojson-cli-differencegeojson-cli-explodegeojson-geometries-lookupgeojson-bbox-cligeo-operationgeo-fakergeojson-polygon-labelsgeojson-split-crossing-linesgeojson-to-svg-cligeojson-rbushgeojson2stl@ngageoint/geopackage@ngageoint/geopackage-csv-js@ngageoint/geopackage-geojson-js@ngageoint/geopackage-kml-jsreact-cismap
7.0.0-alpha.115

2 days ago

7.0.0-alpha.114

1 month ago

7.0.0-alpha.113

3 months ago

7.0.0-alpha.111

3 months ago

7.0.0-alpha.110

4 months ago

7.0.0-alpha.1

7 months ago

7.0.0-alpha.2

7 months ago

7.0.0-alpha.0

1 year ago

6.5.0

3 years ago

6.4.0

3 years ago

6.3.0

3 years ago

6.2.0

3 years ago

6.2.0-alpha.3

3 years ago

6.2.0-alpha.2

4 years ago

6.2.0-alpha.0

4 years ago

6.2.0-alpha.1

4 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.1.5

6 years ago

5.1.0

6 years ago

5.0.4

6 years ago

5.0.0

7 years ago

4.7.3

7 years ago

4.7.1

7 years ago

4.7.0

7 years ago

4.6.0

7 years ago

4.5.2

7 years ago

4.5.1

7 years ago

4.5.0

7 years ago

4.4.0

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.14.0

7 years ago

3.13.0

7 years ago

3.10.5

7 years ago

3.10.4

7 years ago

3.10.3

7 years ago

3.10.0

7 years ago

3.7.5

7 years ago

3.7.3

7 years ago

3.7.0

7 years ago

3.6.3

7 years ago

3.6.1

7 years ago

3.5.3

7 years ago

3.5.2

8 years ago

3.3.3

8 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.0.16

8 years ago

3.0.15

8 years ago