High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: Adjust the zoom level (#24353)
Justin Forseth76b4adf276be
diff --git a/mobile/lib/pages/search/map/map_location_picker.page.dart b/mobile/lib/pages/search/map/map_location_picker.page.dartindex 94e6627c98..a2c927c6bd 100644--- a/mobile/lib/pages/search/map/map_location_picker.page.dart+++ b/mobile/lib/pages/search/map/map_location_picker.page.dart@@ -49,7 +49,7 @@ class MapLocationPickerPage extends HookConsumerWidget {var currentLatLng = LatLng(currentLocation.latitude, currentLocation.longitude);selectedLatLng.value = currentLatLng;- await controller.value?.animateCamera(CameraUpdate.newLatLng(currentLatLng));+ await controller.value?.animateCamera(CameraUpdate.newLatLngZoom(currentLatLng, 12));}return MapThemeOverride(@@ -66,7 +66,10 @@ class MapLocationPickerPage extends HookConsumerWidget {borderRadius: BorderRadius.only(bottomLeft: Radius.circular(40), bottomRight: Radius.circular(40)),),child: MapLibreMap(- initialCameraPosition: CameraPosition(target: initialLatLng, zoom: 12),+ initialCameraPosition: CameraPosition(+ target: initialLatLng,+ zoom: (initialLatLng.latitude == 0 && initialLatLng.longitude == 0) ? 1 : 12,+ ),styleString: style,onMapCreated: (mapController) => controller.value = mapController,onStyleLoadedCallback: onStyleLoaded,