mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Expand map borders for New Zealanders
This commit is contained in:
parent
f171b5d35f
commit
6bdb103814
2 changed files with 7 additions and 8 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
|
@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
### Added
|
### 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
|
- In addition to `api_key` parameter, `Authorization` header is now being used to authenticate API requests. #543
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
@ -17,13 +20,9 @@ Example:
|
||||||
Authorization: Bearer YOUR_API_KEY
|
Authorization: Bearer YOUR_API_KEY
|
||||||
```
|
```
|
||||||
|
|
||||||
# 0.20.3 - 2024-12-20
|
### Changed
|
||||||
|
|
||||||
### Added
|
- The map borders were expanded to make it easier to scroll around the map for New Zealanders.
|
||||||
|
|
||||||
- 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.
|
|
||||||
|
|
||||||
# 0.20.2 - 2024-12-17
|
# 0.20.2 - 2024-12-17
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ export default class extends Controller {
|
||||||
this.map = L.map(this.containerTarget).setView([this.center[0], this.center[1]], 14);
|
this.map = L.map(this.containerTarget).setView([this.center[0], this.center[1]], 14);
|
||||||
|
|
||||||
// Set the maximum bounds to prevent infinite scroll
|
// Set the maximum bounds to prevent infinite scroll
|
||||||
var southWest = L.latLng(-90, -180);
|
var southWest = L.latLng(-120, -210);
|
||||||
var northEast = L.latLng(90, 180);
|
var northEast = L.latLng(120, 210);
|
||||||
var bounds = L.latLngBounds(southWest, northEast);
|
var bounds = L.latLngBounds(southWest, northEast);
|
||||||
|
|
||||||
this.map.setMaxBounds(bounds);
|
this.map.setMaxBounds(bounds);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue