mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
feat(web): increase map max zoom (#5693)
* increate max zoom * increase max zoom on mobile
This commit is contained in:
parent
a4c057ba63
commit
3a2e9b6298
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue