geojson-elevation
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -5,3 +5,4 @@ var coordEach = require('turf-meta').coordEach; | ||
addElevation: function(geojson, elevationProvider, cb) { | ||
var waiting = 0; | ||
var waiting = 0, | ||
allProcessed = false; | ||
@@ -20,3 +21,3 @@ coordEach(geojson, function(coords) { | ||
if (waiting === 0) { | ||
if (allProcessed && waiting === 0) { | ||
cb(undefined, geojson); | ||
@@ -26,3 +27,8 @@ } | ||
}); | ||
allProcessed = true; | ||
if (waiting === 0) { | ||
cb(undefined, geojson); | ||
} | ||
} | ||
}; |
{ | ||
"name": "geojson-elevation", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Add elevation data to GeoJSON objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
63471849
49