Skip to content

Commit

Permalink
fix: make it easier to click on New Zealand
Browse files Browse the repository at this point in the history
Fixed by doing two things:

1. Increase the limit of how far you can go with the map, according to the max limits of latitude and longitude.
2.  Moving leaderboard to the top, not disturbing too much of the map.

Fixes #82
  • Loading branch information
Erb3 committed Jul 11, 2024
1 parent ac3d0b6 commit 50d997e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ aside {
width: 13vw;
padding: 1vw;
position: absolute;
bottom: 0;
top: 0;
right: 0;
z-index: 999;
background-color: rgba(0, 0, 0, 0.75);
Expand Down
4 changes: 2 additions & 2 deletions frontend/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const map = L.map("map", {
maxZoom: 5,
scrollWheelZoom: true,
maxBounds: [
[89.9, 160.9],
[-89.9, -160.9],
[-90, -180],
[90, 180],
],
zoomControl: false,
noWrap: true,
Expand Down

0 comments on commit 50d997e

Please sign in to comment.