diff options
| author | diogo464 <[email protected]> | 2024-10-04 19:29:55 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-10-04 19:29:55 +0100 |
| commit | a6d1fada6af5e5cbb2a7f2a5b7b0faef02f3eab7 (patch) | |
| tree | 5444d2db6b30afba982b39a616828eeac64b71df /content/static | |
| parent | d93194b2927a4b0919a49f3f05b759b0bfbe4ac3 (diff) | |
increased max zoom on map
Diffstat (limited to 'content/static')
| -rw-r--r-- | content/static/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/static/main.js b/content/static/main.js index d8debae..bd91690 100644 --- a/content/static/main.js +++ b/content/static/main.js | |||
| @@ -61,7 +61,8 @@ function lib_setup_map() { | |||
| 61 | var map = L.map(ELEM_ID_MAP).setView(DEFAULT_COORDINATES, DEFAULT_ZOOM); | 61 | var map = L.map(ELEM_ID_MAP).setView(DEFAULT_COORDINATES, DEFAULT_ZOOM); |
| 62 | L.Icon.Default.imagePath = "/static/"; | 62 | L.Icon.Default.imagePath = "/static/"; |
| 63 | L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { | 63 | L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { |
| 64 | maxZoom: 19, | 64 | maxNativeZoom: 19, |
| 65 | maxZoom: 25, | ||
| 65 | attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' | 66 | attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' |
| 66 | }).addTo(map); | 67 | }).addTo(map); |
| 67 | return map; | 68 | return map; |
