Patrick Brosi 4 years ago
parent
commit
17fa0b60a2
1 changed files with 6 additions and 7 deletions
  1. 6 7
      web/script.js

+ 6 - 7
web/script.js

@@ -388,19 +388,18 @@ function render() {
388
                     suggs.push(a);
388
                     suggs.push(a);
389
                 }
389
                 }
390
 
390
 
391
-                if (map.getZoom() > 15) {
392
-                    labelLayer.addLayer(L.featureGroup(labels));
393
-                    layer.addLayer(L.featureGroup(suggs).on('click', function(a) {
394
-                        openStat(a.layer.options.id);
395
-                    }));
396
-                }
397
-
398
                 if (map.getZoom() > 13) {
391
                 if (map.getZoom() > 13) {
399
                     layer.addLayer(L.featureGroup(groups).on('click', function(a) {
392
                     layer.addLayer(L.featureGroup(groups).on('click', function(a) {
400
                         openGroup(a.layer.options.id, a.layer.getBounds().getCenter());
393
                         openGroup(a.layer.options.id, a.layer.getBounds().getCenter());
401
                     }));
394
                     }));
402
                 }
395
                 }
403
 
396
 
397
+                if (map.getZoom() > 15) {
398
+                    labelLayer.addLayer(L.featureGroup(labels));
399
+                    layer.addLayer(L.featureGroup(suggs).on('click', function(a) {
400
+                        openStat(a.layer.options.id);
401
+                    }));
402
+                }
404
 
403
 
405
                 layer.addLayer(L.featureGroup(stations).on('click', function(a) {
404
                 layer.addLayer(L.featureGroup(stations).on('click', function(a) {
406
                     openStat(a.layer.options.id);
405
                     openStat(a.layer.options.id);