From 3a2e9b6298966b09eb6b6d71424b9fead931ff20 Mon Sep 17 00:00:00 2001 From: waclaw66 Date: Thu, 14 Dec 2023 14:40:56 +0100 Subject: [PATCH] feat(web): increase map max zoom (#5693) * increate max zoom * increase max zoom on mobile --- mobile/lib/modules/map/providers/map_state.provider.dart | 2 +- web/src/lib/components/shared-components/map/map.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/lib/modules/map/providers/map_state.provider.dart b/mobile/lib/modules/map/providers/map_state.provider.dart index 3296b09c0a..fccde751be 100644 --- a/mobile/lib/modules/map/providers/map_state.provider.dart +++ b/mobile/lib/modules/map/providers/map_state.provider.dart @@ -44,7 +44,7 @@ class MapStateNotifier extends StateNotifier { state.mapStyle != null && state.mapStyle!.rasterTileProvider != null; double get maxZoom => - (isRaster ? state.mapStyle!.rasterTileProvider!.maximumZoom : 14) + (isRaster ? state.mapStyle!.rasterTileProvider!.maximumZoom : 18) .toDouble(); void switchTheme(bool isDarkTheme) { diff --git a/web/src/lib/components/shared-components/map/map.svelte b/web/src/lib/components/shared-components/map/map.svelte index 9a24c7e342..aee354f430 100644 --- a/web/src/lib/components/shared-components/map/map.svelte +++ b/web/src/lib/components/shared-components/map/map.svelte @@ -115,7 +115,7 @@ attributionControl={false} diffStyleUpdates={true} let:map - on:load={(event) => event.detail.setMaxZoom(14)} + on:load={(event) => event.detail.setMaxZoom(18)} on:load={(event) => event.detail.on('click', handleMapClick)} bind:map >