Skip to content

Commit

Permalink
tweak trains and trainlines displayed zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
standmit committed Nov 2, 2024
1 parent a7b5226 commit 05bbed7
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 05bbed7

Please sign in to comment.