Skip to content

Commit c45f002

Browse files
authored
tweak trains and trainlines displayed zoom (#412)
1 parent e1c9bdb commit c45f002

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

public/js/map/overlays/TrainOverlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default L.LayerGroup.extend({
7171

7272

7373
getMaxDisplayedZoom: function(){
74-
return 10;
74+
return 7;
7575
},
7676

7777
createMarker: function(train){

public/js/map/overlays/TrainlineOverlay.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ export default AbstractGeoJsonOverlay.extend({
5858
}
5959
});
6060
},
61+
62+
getMaxDisplayedZoom: function(){
63+
return 4;
64+
},
6165

6266
createGeoJson: function(objects){
6367
var self = this;

0 commit comments

Comments
 (0)