geojson-elevation
Advanced tools
Comparing version 1.0.1 to 1.1.0
11
index.js
var coordEach = require('turf-meta').coordEach; | ||
module.exports = { | ||
addElevation: function(geojson, elevationProvider, cb) { | ||
addElevation: function(geojson, elevationProvider, cb, nodata) { | ||
var waiting = 0, | ||
@@ -13,4 +13,9 @@ allProcessed = false; | ||
if (err) { | ||
cb(err); | ||
waiting = -1; | ||
if (nodata != null) { | ||
coords[2] = nodata; | ||
waiting--; | ||
} else { | ||
cb(err); | ||
waiting = -1; | ||
} | ||
} else { | ||
@@ -17,0 +22,0 @@ coords[2] = elevation; |
{ | ||
"name": "geojson-elevation", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Add elevation data to GeoJSON objects", | ||
"homepage": "https://github.com/perliedman/geojson-elevation", | ||
"repository": "git@github.com:perliedman/geojson-elevation.git", | ||
"main": "index.js", | ||
"repository": "git@github.com:perliedman/geojson-elevation.git", | ||
"scripts": { | ||
@@ -18,5 +19,5 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"dependencies": { | ||
"node-hgt": "^1.0.2", | ||
"node-hgt": "^1.1.0", | ||
"turf-meta": "^1.0.2" | ||
} | ||
} |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
63472849
28
54
1
Updatednode-hgt@^1.1.0