@turf/bbox
turf bbox module
Last updated 9 years ago by morganherlocker .
MIT · Repository · Bugs · Original npm
$ cnpm install @turf/bbox 
SYNC missed versions from official npm registry.

@turf/bbox

bbox

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

Parameters

  • geojson GeoJSON any GeoJSON object

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

Current Tags

  • 3.5.2-alpha.d2c36ee7                                ...           canary (9 years ago)
  • 6.5.0                                ...           latest (4 years ago)
  • 7.0.0-alpha.0                                ...           prerelease (3 years ago)

5 Versions

  • 7.0.0-alpha.0                                ...           3 years ago
  • 6.5.0                                ...           4 years ago
  • 6.2.0-alpha.2                                ...           5 years ago
  • 3.5.2-alpha.d2c36ee7                                ...           9 years ago
  • 6.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org