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;