Parcourir la source

Map: fix floor displaying in the pop-up informations

vross il y a 7 ans
Parent
commit
ee8d2da48c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      wifiwithme/static/map.js

+ 1 - 1
wifiwithme/static/map.js

@@ -56,7 +56,7 @@ $( document ).ready(function() {
 
 
             if (feature.properties.place) {
             if (feature.properties.place) {
                 feature.properties.popupContent += '<ul>';
                 feature.properties.popupContent += '<ul>';
-                if (feature.properties.place && feature.properties.floor) {
+                if (feature.properties.place.floor) {
                     feature.properties.popupContent += '<li>Étage: '+feature.properties.place.floor+'</li>';
                     feature.properties.popupContent += '<li>Étage: '+feature.properties.place.floor+'</li>';
                 }
                 }
                 if (feature.properties.place.orientations && feature.properties.place.orientations[0]) feature.properties.popupContent += '<li>Orientation: '+feature.properties.place.orientations.join(', ')+'</li>';
                 if (feature.properties.place.orientations && feature.properties.place.orientations[0]) feature.properties.popupContent += '<li>Orientation: '+feature.properties.place.orientations.join(', ')+'</li>';