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:
parent
a4c057ba63
commit
3a2e9b6298
@ -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) {
|
||||||
|
@ -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
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user