@turf/along
Advanced tools
Comparing version 4.1.0 to 4.2.0
16
index.js
@@ -14,3 +14,2 @@ var measureDistance = require('@turf/distance'); | ||
* @returns {Feature<Point>} Point `distance` `units` along the line | ||
* @addToMap along, line | ||
* @example | ||
@@ -22,15 +21,10 @@ * var line = { | ||
* "type": "LineString", | ||
* "coordinates": [ | ||
* [-77.031669, 38.878605], | ||
* [-77.029609, 38.881946], | ||
* [-77.020339, 38.884084], | ||
* [-77.025661, 38.885821], | ||
* [-77.021884, 38.889563], | ||
* [-77.019824, 38.892368] | ||
* ] | ||
* "coordinates": [[-83, 30], [-84, 36], [-78, 41]] | ||
* } | ||
* }; | ||
* | ||
* var along = turf.along(line, 1, 'miles'); | ||
* //=along | ||
* var along = turf.along(line, 200, 'miles'); | ||
* | ||
* //addToMap | ||
* var addToMap = [along, line] | ||
*/ | ||
@@ -37,0 +31,0 @@ module.exports = function (line, distance, units) { |
{ | ||
"name": "@turf/along", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "turf along module", | ||
@@ -35,10 +35,10 @@ "main": "index.js", | ||
"tape": "^3.5.0", | ||
"@turf/helpers": "^4.1.0" | ||
"@turf/helpers": "^4.2.0" | ||
}, | ||
"dependencies": { | ||
"@turf/bearing": "^4.1.0", | ||
"@turf/destination": "^4.1.0", | ||
"@turf/distance": "^4.1.0", | ||
"@turf/helpers": "^4.1.0" | ||
"@turf/bearing": "^4.2.0", | ||
"@turf/destination": "^4.2.0", | ||
"@turf/distance": "^4.2.0", | ||
"@turf/helpers": "^4.2.0" | ||
} | ||
} |
@@ -21,15 +21,10 @@ # @turf/along | ||
"type": "LineString", | ||
"coordinates": [ | ||
[-77.031669, 38.878605], | ||
[-77.029609, 38.881946], | ||
[-77.020339, 38.884084], | ||
[-77.025661, 38.885821], | ||
[-77.021884, 38.889563], | ||
[-77.019824, 38.892368] | ||
] | ||
"coordinates": [[-83, 30], [-84, 36], [-78, 41]] | ||
} | ||
}; | ||
var along = turf.along(line, 1, 'miles'); | ||
//=along | ||
var along = turf.along(line, 200, 'miles'); | ||
//addToMap | ||
var addToMap = [along, line] | ||
``` | ||
@@ -36,0 +31,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
5850
58
57
Updated@turf/bearing@^4.2.0
Updated@turf/destination@^4.2.0
Updated@turf/distance@^4.2.0
Updated@turf/helpers@^4.2.0