summaryrefslogtreecommitdiff
path: root/create-data.js
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-08-04 18:47:59 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-08-04 18:47:59 +0100
commita0c36464be656943257a4b9ec931e90a32cef283 (patch)
tree595395ea47cc9f6a0811e73eebaf983f68f9c192 /create-data.js
parent70587a76639ae53a97f6e53e83e4bcee9e448f79 (diff)
downloadleaflet-soton-a0c36464be656943257a4b9ec931e90a32cef283.tar
leaflet-soton-a0c36464be656943257a4b9ec931e90a32cef283.tar.gz
Fix issue
Diffstat (limited to 'create-data.js')
-rwxr-xr-xcreate-data.js4
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) {