Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat(map in info): fix france coming up as center point initially when opening maps

ashilkn41e049e23860
diff --git a/lib/ui/map/map_screen.dart b/lib/ui/map/map_screen.dart
index 96db7ff123..97b271be8b 100644
--- a/lib/ui/map/map_screen.dart
+++ b/lib/ui/map/map_screen.dart
@@ -48,7 +48,7 @@ class _MapScreenState extends State<MapScreen> {
double maxZoom = 18.0;
double minZoom = 2.8;
int debounceDuration = 500;
- LatLng center = const LatLng(46.7286, 4.8614);
+ late LatLng center;
final Logger _logger = Logger("_MapScreenState");
StreamSubscription? _mapMoveSubscription;
Isolate? isolate;
@@ -70,6 +70,7 @@ class _MapScreenState extends State<MapScreen> {
Future<void> initialize() async {
try {
+ center = widget.center ?? const LatLng(46.7286, 4.8614);
allImages = await widget.filesFutureFn();
unawaited(processFiles(allImages));
} catch (e, s) {