diff --git a/public/js/map/overlays/TrainOverlay.js b/public/js/map/overlays/TrainOverlay.js index a9076691..c548ca3d 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 c717dc52..517ac015 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;