mirror of
https://github.com/immich-app/immich.git
synced 2025-12-08 17:23:14 +03:00
@@ -49,7 +49,7 @@ class MapLocationPickerPage extends HookConsumerWidget {
|
|||||||
|
|
||||||
var currentLatLng = LatLng(currentLocation.latitude, currentLocation.longitude);
|
var currentLatLng = LatLng(currentLocation.latitude, currentLocation.longitude);
|
||||||
selectedLatLng.value = currentLatLng;
|
selectedLatLng.value = currentLatLng;
|
||||||
await controller.value?.animateCamera(CameraUpdate.newLatLng(currentLatLng));
|
await controller.value?.animateCamera(CameraUpdate.newLatLngZoom(currentLatLng, 12));
|
||||||
}
|
}
|
||||||
|
|
||||||
return MapThemeOverride(
|
return MapThemeOverride(
|
||||||
@@ -66,7 +66,10 @@ class MapLocationPickerPage extends HookConsumerWidget {
|
|||||||
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(40), bottomRight: Radius.circular(40)),
|
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(40), bottomRight: Radius.circular(40)),
|
||||||
),
|
),
|
||||||
child: MapLibreMap(
|
child: MapLibreMap(
|
||||||
initialCameraPosition: CameraPosition(target: initialLatLng, zoom: 12),
|
initialCameraPosition: CameraPosition(
|
||||||
|
target: initialLatLng,
|
||||||
|
zoom: (initialLatLng.latitude == 0 && initialLatLng.longitude == 0) ? 1 : 12,
|
||||||
|
),
|
||||||
styleString: style,
|
styleString: style,
|
||||||
onMapCreated: (mapController) => controller.value = mapController,
|
onMapCreated: (mapController) => controller.value = mapController,
|
||||||
onStyleLoadedCallback: onStyleLoaded,
|
onStyleLoadedCallback: onStyleLoaded,
|
||||||
|
|||||||
Reference in New Issue
Block a user