@turf/bbox
turf bbox module
Last updated 2 years ago by deniscarriere .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ 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 (4 years ago)
  • 6.0.1                                ...           latest (2 years ago)
  • 6.2.0-alpha.2                                ...           prerelease (a day ago)

43 Versions

  • 6.2.0-alpha.2                                ...           a day ago
  • 6.2.0-alpha.1                                ...           4 months ago
  • 6.2.0-alpha.0                                ...           4 months ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.1.5                                ...           3 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.4                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.7.3                                ...           3 years ago
  • 4.7.1                                ...           3 years ago
  • 4.7.0                                ...           3 years ago
  • 4.6.0                                ...           3 years ago
  • 4.5.2                                ...           3 years ago
  • 4.5.1                                ...           3 years ago
  • 4.5.0                                ...           3 years ago
  • 4.4.0                                ...           3 years ago
  • 4.3.0                                ...           3 years ago
  • 4.2.0                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.14.0                                ...           3 years ago
  • 3.13.0                                ...           3 years ago
  • 3.10.5                                ...           3 years ago
  • 3.10.4                                ...           3 years ago
  • 3.10.3                                ...           3 years ago
  • 3.10.0                                ...           3 years ago
  • 3.7.5                                ...           3 years ago
  • 3.7.4-alpha.d120ccf4                                ...           3 years ago
  • 3.7.3                                ...           4 years ago
  • 3.7.0                                ...           4 years ago
  • 3.6.3                                ...           4 years ago
  • 3.6.1                                ...           4 years ago
  • 3.5.3                                ...           4 years ago
  • 3.5.2-alpha.d2c36ee7                                ...           4 years ago
  • 3.5.2                                ...           4 years ago
  • 3.3.3                                ...           4 years ago
  • 3.1.2                                ...           4 years ago
  • 3.1.1                                ...           4 years ago
  • 3.0.16                                ...           4 years ago
  • 3.0.15                                ...           4 years ago
Downloads
Today 1
This Week 759
This Month 3,151
Last Day 281
Last Week 1,516
Last Month 6,725
Dependencies (2)
Dev Dependencies (5)
Dependents (195)

Copyright 2014 - 2016 © taobao.org |