@turf/square
Advanced tools
Comparing version 4.5.2 to 4.6.0
14
index.js
@@ -10,16 +10,10 @@ var distance = require('@turf/distance'); | ||
* @returns {Array<number>} a square surrounding `bbox` | ||
* @addToMap features | ||
* @example | ||
* var bbox = [-20,-20,-15,0]; | ||
* | ||
* var squared = turf.square(bbox); | ||
* var features = turf.featureCollection([ | ||
* turf.bboxPolygon(bbox), | ||
* turf.bboxPolygon(squared) | ||
* ]); | ||
* | ||
* var features = { | ||
* "type": "FeatureCollection", | ||
* "features": [ | ||
* turf.bboxPolygon(bbox), | ||
* turf.bboxPolygon(squared) | ||
* ] | ||
* }; | ||
* | ||
* //addToMap | ||
@@ -26,0 +20,0 @@ * var addToMap = [features] |
{ | ||
"name": "@turf/square", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"description": "turf square module", | ||
@@ -36,4 +36,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@turf/distance": "^4.5.2" | ||
"@turf/distance": "^4.6.0" | ||
} | ||
} |
@@ -16,13 +16,8 @@ # @turf/square | ||
var bbox = [-20,-20,-15,0]; | ||
var squared = turf.square(bbox); | ||
var features = turf.featureCollection([ | ||
turf.bboxPolygon(bbox), | ||
turf.bboxPolygon(squared) | ||
]); | ||
var features = { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
turf.bboxPolygon(bbox), | ||
turf.bboxPolygon(squared) | ||
] | ||
}; | ||
//addToMap | ||
@@ -29,0 +24,0 @@ var addToMap = [features] |
4854
52
52
Updated@turf/distance@^4.6.0