feat: Restrict map zoom to tile server capabilities

This commit is contained in:
Marcel 2022-03-15 12:35:32 +00:00
parent 56b44eb717
commit f1578490b5
1 changed files with 2 additions and 0 deletions

View File

@ -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'],