diff --git a/CHANGELOG.md b/CHANGELOG.md index ec26ef69..32c90c57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index 2cbf4a58..40893763 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -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);