Skip to content

Commit

Permalink
tweak trains and trainlines displayed zoom (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
standmit authored Nov 11, 2024
1 parent e1c9bdb commit c45f002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/map/overlays/TrainOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default L.LayerGroup.extend({


getMaxDisplayedZoom: function(){
return 10;
return 7;
},

createMarker: function(train){
Expand Down
4 changes: 4 additions & 0 deletions public/js/map/overlays/TrainlineOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export default AbstractGeoJsonOverlay.extend({
}
});
},

getMaxDisplayedZoom: function(){
return 4;
},

createGeoJson: function(objects){
var self = this;
Expand Down

0 comments on commit c45f002

Please sign in to comment.