Skip to content

Commit

Permalink
feat(web): increase map max zoom (immich-app#5693)
Browse files Browse the repository at this point in the history
* increate max zoom

* increase max zoom on mobile
  • Loading branch information
waclaw66 authored Dec 14, 2023
1 parent a4c057b commit 3a2e9b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mobile/lib/modules/map/providers/map_state.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MapStateNotifier extends StateNotifier<MapState> {
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) {
Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/components/shared-components/map/map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
>
Expand Down

0 comments on commit 3a2e9b6

Please sign in to comment.