瀏覽代碼

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");
         debugPrint("Info for map: minLon $minLon, maxLon $maxLon");
       }
       }
     } else {
     } else {
-      showShortToast(context, "No images with location found");
+      showShortToast(context, "No images with location");
     }
     }
 
 
     setState(() {
     setState(() {

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

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