6.5.0 • Published 17 days ago

@turf/bbox-polygon v6.5.0

Weekly downloads
156,882
License
MIT
Repository
github
Last release
17 days ago

@turf/bbox-polygon

bboxPolygon

Takes a bbox and returns an equivalent polygon.

Parameters

  • bbox BBox extent in minX, minY, maxX, maxY order
  • options Object Optional parameters (optional, default {})
    • options.properties Properties Translate properties to Polygon (optional, default {})
    • options.id (string | number) Translate Id to Polygon (optional, default {})

Examples

var bbox = [0, 0, 10, 10];

var poly = turf.bboxPolygon(bbox);

//addToMap
var addToMap = [poly]

Returns Feature<Polygon> a Polygon representation of the bounding box


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-polygon

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

$ npm install @turf/turf
@infinitebrahmanuniverse/nolb-_tur@hopara/hoparathing-it-server@everything-registry/sub-chunk-941hongtu-utilidly-commonidly-glidly-workeriphaeton-idly-glluke.glmap-common-utilsmgl-circle-radiusmpilot-uinebula.glmapbox-map-image-exportmapbox-query-featuresmap-tile-downloadermapbox-gl-circlemapbox-gl-circle-forkedmapbox-gl-js-mockmcalzado-react-workersgtfs-to-geojsongeocoder-geojsongeo_radius_scrapergeoexgeo-fakerproximiio-js-libraryopenflights-datareact-cismapreact-cismap-experimentalxlucene-evaluator@globalfishingwatch/deck-layers@imaginerio/diachronic-atlasvibemap-constantsvue-openlayer-mapvue-openlayer-maplxvue-openlayer-mapslvue-openlayer-sailingmapvue-openlayer-slmapvue-openlayer-slmap1vue-openlayers-dvue-openlayervue-openlayer-basevue-openlayer-baseluovue-openlayer-darkvue-openlayer-huhongxunvue-openlayer-luoxuvue-openlayer-lxunl-core@mblomdahl/mapbox-gl-circle@juicyllama/utils@keys2design/carto-react-workersx-hongtu-utilwinnowyymap-turftilestrata-s3tilestrata-warmertilebase@multicycles/nextbike@multicycles/whitebikes@loudsrl/turf@nebula.gl/edit-modes@nebula.gl/layers@hongtu-next/util@hive9/mapbox-gl-mock@geostarters/common@geostarters/icgc-svelte-components@geonet/generate-raster-footprintstatic-maps-overlaytest-yararescape-geospatial-sankeyrescape-helpersrescape-osmrescape-placerescape-webshape2geohashsharedstreetsslf-jsskeleton-keyholereal-changesets-parser@map-colonies/react-components@mapbox/tile-reduce@kyfe/kyemap-js@oidajs/map-ol@oidajs/core@koopjs/winnow@koopjs/geoservice-utils@koopjs/provider-elastic-sql@mybus/spatial@varlab-ucf/nebula.gl@varlab-ucf/nebulagl-edit-modes@varlab-ucf/nebulagl-layers@visa/bivariate-mapbox-map@treecg/geospatial-bucketizer@ragone/edit-modes@rdmr-eu/rdf-geopackage@strategies/maplibsasakidev@turf/envelope@turf/nearest-neighbor-analysis@turf/shortest-path
7.0.0-alpha.114

17 days ago

7.0.0-alpha.113

2 months ago

7.0.0-alpha.111

2 months ago

7.0.0-alpha.110

3 months ago

7.0.0-alpha.1

6 months ago

7.0.0-alpha.2

6 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.4

6 years ago

5.1.0

6 years ago

5.0.4

6 years ago

5.0.0

6 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.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.3

7 years ago

3.10.0

7 years ago

3.7.5

7 years ago

3.7.3

7 years ago

3.7.2

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.1

8 years ago

3.0.16

8 years ago

3.0.15

8 years ago