From f1578490b5f5ff03bd33db017a1d3a0ba98ece93 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 15 Mar 2022 12:35:32 +0000 Subject: [PATCH] feat: Restrict map zoom to tile server capabilities --- lib/pages/chat/events/map_bubble.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pages/chat/events/map_bubble.dart b/lib/pages/chat/events/map_bubble.dart index b889a40f..4d7370c7 100644 --- a/lib/pages/chat/events/map_bubble.dart +++ b/lib/pages/chat/events/map_bubble.dart @@ -37,6 +37,8 @@ class MapBubble extends StatelessWidget { ), layers: [ TileLayerOptions( + maxZoom: 20, + minZoom: 0, urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'],