diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-08-04 18:47:59 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-08-04 18:47:59 +0100 |
commit | a0c36464be656943257a4b9ec931e90a32cef283 (patch) | |
tree | 595395ea47cc9f6a0811e73eebaf983f68f9c192 | |
parent | 70587a76639ae53a97f6e53e83e4bcee9e448f79 (diff) | |
download | leaflet-soton-a0c36464be656943257a4b9ec931e90a32cef283.tar leaflet-soton-a0c36464be656943257a4b9ec931e90a32cef283.tar.gz |
Fix issue
-rwxr-xr-x | create-data.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/create-data.js b/create-data.js index 412e4d0..2fc85a3 100755 --- a/create-data.js +++ b/create-data.js @@ -643,6 +643,10 @@ function createBuildingParts(buildings, callback) { partLevels = [ partLevels ]; } + if (typeof(partLevels) === "undefined") { + continue; + } + //console.log("part levels " + JSON.stringify(partLevels)); possibleLevels = partLevels.filter(function(possibility) { |