Skip to content

Commit

Permalink
set maxZoom on street map
Browse files Browse the repository at this point in the history
  • Loading branch information
iiiii7d authored Jul 23, 2024
1 parent 806f404 commit 4cb3c22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class Buttons {
.addTo(map);
const streetMap = L.tileLayer(
new URLSearchParams(window.location.search).has("v5") ? "https://raw.githubusercontent.com/MRT-Map/map-data/v5/tiles/{z}/{x}/{y}.webp" : "https://raw.githubusercontent.com/MRT-Map/map-data/main/tiles/{z}/{x}/{y}.webp",
{maxZoom: 9},
);
this.streetMap = L.easyButton(
"fa-map",
Expand Down

0 comments on commit 4cb3c22

Please sign in to comment.