1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

feat(web): increase map max zoom (#5693)

* increate max zoom

* increase max zoom on mobile
This commit is contained in:
waclaw66 2023-12-14 14:40:56 +01:00 committed by GitHub
parent a4c057ba63
commit 3a2e9b6298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class MapStateNotifier extends StateNotifier<MapState> {
state.mapStyle != null && state.mapStyle!.rasterTileProvider != null; state.mapStyle != null && state.mapStyle!.rasterTileProvider != null;
double get maxZoom => double get maxZoom =>
(isRaster ? state.mapStyle!.rasterTileProvider!.maximumZoom : 14) (isRaster ? state.mapStyle!.rasterTileProvider!.maximumZoom : 18)
.toDouble(); .toDouble();
void switchTheme(bool isDarkTheme) { void switchTheme(bool isDarkTheme) {

View File

@ -115,7 +115,7 @@
attributionControl={false} attributionControl={false}
diffStyleUpdates={true} diffStyleUpdates={true}
let:map let:map
on:load={(event) => event.detail.setMaxZoom(14)} on:load={(event) => event.detail.setMaxZoom(18)}
on:load={(event) => event.detail.on('click', handleMapClick)} on:load={(event) => event.detail.on('click', handleMapClick)}
bind:map bind:map
> >