Patrick Brosi 4 gadi atpakaļ
vecāks
revīzija
17fa0b60a2
1 mainītis faili ar 6 papildinājumiem un 7 dzēšanām
  1. 6 7
      web/script.js

+ 6 - 7
web/script.js

@@ -388,19 +388,18 @@ function render() {
388 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 391
                 if (map.getZoom() > 13) {
399 392
                     layer.addLayer(L.featureGroup(groups).on('click', function(a) {
400 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 404
                 layer.addLayer(L.featureGroup(stations).on('click', function(a) {
406 405
                     openStat(a.layer.options.id);