Переглянути джерело

Map: Minor tweaks

Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
Neeraj Gupta 2 роки тому
батько
коміт
cb02776650
2 змінених файлів з 3 додано та 1 видалено
  1. 1 1
      lib/ui/map/map_screen.dart
  2. 2 0
      lib/ui/map/map_view.dart

+ 1 - 1
lib/ui/map/map_screen.dart

@@ -104,7 +104,7 @@ class _MapScreenState extends State<MapScreen> {
         debugPrint("Info for map: minLon $minLon, maxLon $maxLon");
       }
     } else {
-      showShortToast(context, "No images with location found");
+      showShortToast(context, "No images with location");
     }
 
     setState(() {

+ 2 - 0
lib/ui/map/map_view.dart

@@ -64,6 +64,7 @@ class _MapViewState extends State<MapView> {
           options: MapOptions(
             minZoom: widget.minZoom,
             maxZoom: widget.maxZoom,
+            enableMultiFingerGestureRace: true,
             onPositionChanged: (position, hasGesture) {
               if (position.bounds != null) {
                 if (!_isDebouncing) {
@@ -85,6 +86,7 @@ class _MapViewState extends State<MapView> {
             TileLayerOptions(
               urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
               subdomains: ['a', 'b', 'c'],
+              backgroundColor: Colors.transparent,
             ),
             MarkerClusterLayerOptions(
               maxClusterRadius: 100,