@turf/bbox
Advanced tools
Comparing version 4.5.2 to 4.6.0
11
index.js
@@ -10,14 +10,7 @@ var coordEach = require('@turf/meta').coordEach; | ||
* @example | ||
* var line = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "LineString", | ||
* "coordinates": [[-74, 40], [-78, 42], [-82, 35]] | ||
* } | ||
* } | ||
* var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]); | ||
* var bbox = turf.bbox(line); | ||
* var bboxPolygon = turf.bboxPolygon(bbox); | ||
* | ||
* //addToMap | ||
* var bboxPolygon = turf.bboxPolygon(bbox); | ||
* var addToMap = [line, bboxPolygon] | ||
@@ -24,0 +17,0 @@ */ |
{ | ||
"name": "@turf/bbox", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"description": "turf bbox module", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@turf/helpers": "^4.5.2", | ||
"@turf/helpers": "^4.6.0", | ||
"benchmark": "^2.1.4", | ||
@@ -40,4 +40,4 @@ "tape": "^4.6.3" | ||
"dependencies": { | ||
"@turf/meta": "^4.5.2" | ||
"@turf/meta": "^4.6.0" | ||
} | ||
} |
@@ -14,14 +14,7 @@ # @turf/bbox | ||
```javascript | ||
var line = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [[-74, 40], [-78, 42], [-82, 35]] | ||
} | ||
} | ||
var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]); | ||
var bbox = turf.bbox(line); | ||
var bboxPolygon = turf.bboxPolygon(bbox); | ||
//addToMap | ||
var bboxPolygon = turf.bboxPolygon(bbox); | ||
var addToMap = [line, bboxPolygon] | ||
@@ -28,0 +21,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4508
35
48
Updated@turf/meta@^4.6.0