7.2.0 • Published 6 months ago

@turf/bbox-polygon v7.2.0

Weekly downloads
156,882
License
MIT
Repository
github
Last release
6 months 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-941winnowx-hongtu-utilxlucene-evaluatortest-yaravibemap-constants@conveyal/analysis-ui@corpsmap/corpsmap@bencevans/xyz-intersectiphaeton-idly-glstatic-maps-overlaytilebasetilestrata-s3tilestrata-warmerunl-corevue-openlayer-sailingmapvue-openlayer-slmapvue-openlayer-slmap1vue-openlayers-dvue-openlayer-darkvue-openlayer-huhongxunvue-openlayer-luoxuvue-openlayer-lxvue-openlayer-mapvue-openlayer-maplxvue-openlayer-mapslvue-openlayervue-openlayer-basevue-openlayer-baseluo@antv/l7-composite-layers@antv/l7-utils@bmap-turf/turf@carto/react-workers@carto/api-client@citydna/app-townhall-experience@citydna/app-townhall-experience-mkw@cieloazul310/canvasmap@deck.gl-community/editable-layersyymap-turfvin3box@ragone/edit-modes@hive9/mapbox-gl-mock@hongtu-next/util@geonet/generate-raster-footprint@geostarters/common@geostarters/icgc-svelte-components@globalfishingwatch/deck-layers@koopjs/winnow@koopjs/provider-elastic-sql@koopjs/geoservice-utils@kyfe/kyemap-js@loudsrl/turf@mybus/spatial@multicycles/nextbike@multicycles/whitebikes@mapbox/tile-reduce@map-colonies/react-components@nebula.gl/edit-modes@nebula.gl/layers@mblomdahl/mapbox-gl-circle@imaginerio/diachronic-atlas@juicyllama/utils@keys2design/carto-react-workers@oidajs/core@oidajs/map-ol@rdmr-eu/rdf-geopackage@phila/pinboardmpilot-uimgl-circle-radiusopenflights-datareact-cismapreact-cismap-experimentalnebula.glrescape-osmrescape-placerescape-geospatial-sankeyrescape-helpersrescape-webreal-changesets-parserproximiio-js-libraryshape2geohashskeleton-keyholesharedstreetsslf-jsidly-glidly-workeridly-commongtfs-to-geojsonhongtu-utilluke.glmap-common-utilsmapbox-gl-circlemapbox-gl-circle-forkedmapbox-gl-js-mockmapbox-gl-draw-snap-on-modemap-tile-downloadermapbox-query-features
7.2.0

6 months ago

7.1.0

11 months ago

7.1.0-alpha.70

11 months ago

7.0.0

1 year ago

7.1.0-alpha.7

1 year ago

7.0.0-alpha.116

1 year ago

7.0.0-alpha.115

1 year ago

7.0.0-alpha.114

1 year ago

7.0.0-alpha.113

1 year ago

7.0.0-alpha.111

1 year ago

7.0.0-alpha.110

1 year ago

7.0.0-alpha.1

2 years ago

7.0.0-alpha.2

2 years ago

7.0.0-alpha.0

3 years ago

6.5.0

4 years ago

6.4.0

4 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.2.0-alpha.3

5 years ago

6.2.0-alpha.2

5 years ago

6.2.0-alpha.0

5 years ago

6.2.0-alpha.1

5 years ago

6.0.1

7 years ago

6.0.0

7 years ago

5.1.5

8 years ago

5.1.4

8 years ago

5.1.0

8 years ago

5.0.4

8 years ago

5.0.0

8 years ago

4.7.3

8 years ago

4.7.1

8 years ago

4.7.0

8 years ago

4.6.0

8 years ago

4.5.2

8 years ago

4.5.1

8 years ago

4.5.0

8 years ago

4.4.0

8 years ago

4.3.0

8 years ago

4.2.0

8 years ago

4.1.0

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.14.0

8 years ago

3.13.0

8 years ago

3.10.5

8 years ago

3.10.3

8 years ago

3.10.0

8 years ago

3.7.5

8 years ago

3.7.3

8 years ago

3.7.2

8 years ago

3.7.0

9 years ago

3.6.3

9 years ago

3.6.1

9 years ago

3.5.3

9 years ago

3.5.2

9 years ago

3.3.3

9 years ago

3.1.1

9 years ago

3.0.16

9 years ago

3.0.15

9 years ago