From c45f002f82818cf2f0f7d7661f7f893b9ae9cb6b Mon Sep 17 00:00:00 2001 From: Andrey Stepanov Date: Mon, 11 Nov 2024 23:51:31 +0500 Subject: [PATCH] tweak trains and trainlines displayed zoom (#412) --- public/js/map/overlays/TrainOverlay.js | 2 +- public/js/map/overlays/TrainlineOverlay.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/map/overlays/TrainOverlay.js b/public/js/map/overlays/TrainOverlay.js index a907669..c548ca3 100644 --- a/public/js/map/overlays/TrainOverlay.js +++ b/public/js/map/overlays/TrainOverlay.js @@ -71,7 +71,7 @@ export default L.LayerGroup.extend({ getMaxDisplayedZoom: function(){ - return 10; + return 7; }, createMarker: function(train){ diff --git a/public/js/map/overlays/TrainlineOverlay.js b/public/js/map/overlays/TrainlineOverlay.js index c717dc5..517ac01 100644 --- a/public/js/map/overlays/TrainlineOverlay.js +++ b/public/js/map/overlays/TrainlineOverlay.js @@ -58,6 +58,10 @@ export default AbstractGeoJsonOverlay.extend({ } }); }, + + getMaxDisplayedZoom: function(){ + return 4; + }, createGeoJson: function(objects){ var self = this;