summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 85a322b..f2e4e5b 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -421,13 +421,15 @@ SELECT * WHERE {\
if( !('images' in feature.properties) ) { feature.properties.images=[]; }
if ('buildingpart' in feature.properties) {
- if( feature.properties.features.length==0
- && feature.properties.contents.length==0
- && feature.properties.images.length==0 ) {
+ if (feature.properties.buildingpart === "room" &&
+ feature.properties.features.length == 0 &&
+ feature.properties.contents.length == 0 &&
+ feature.properties.images.length == 0) {
+
return false;
}
}
-
+
return true;
}