Expand map borders for New Zealanders

This commit is contained in:
Eugene Burmakin 2024-12-20 16:11:46 +01:00
parent f171b5d35f
commit 6bdb103814
2 changed files with 7 additions and 8 deletions

View file

@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- A button on a year stats card to update stats for the whole year.
- A button on a month stats card to update stats for a specific month.
- A confirmation alert on the Notifications page before deleting all notifications.
- In addition to `api_key` parameter, `Authorization` header is now being used to authenticate API requests. #543
Example:
@ -17,13 +20,9 @@ Example:
Authorization: Bearer YOUR_API_KEY
```
# 0.20.3 - 2024-12-20
### Changed
### Added
- A button on a year stats card to update stats for the whole year.
- A button on a month stats card to update stats for a specific month.
- A confirmation alert on the Notifications page before deleting all notifications.
- The map borders were expanded to make it easier to scroll around the map for New Zealanders.
# 0.20.2 - 2024-12-17

View file

@ -54,8 +54,8 @@ export default class extends Controller {
this.map = L.map(this.containerTarget).setView([this.center[0], this.center[1]], 14);
// Set the maximum bounds to prevent infinite scroll
var southWest = L.latLng(-90, -180);
var northEast = L.latLng(90, 180);
var southWest = L.latLng(-120, -210);
var northEast = L.latLng(120, 210);
var bounds = L.latLngBounds(southWest, northEast);
this.map.setMaxBounds(bounds);