From 8cc5d2f0d20e1bfaed48aa999488fd6a7033cb9b 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 b889a40f8..4d7370c71 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'],