feat: Restrict map zoom to tile server capabilities
This commit is contained in:
parent
8d14b67e27
commit
8cc5d2f0d2
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ class MapBubble extends StatelessWidget {
|
||||||
),
|
),
|
||||||
layers: [
|
layers: [
|
||||||
TileLayerOptions(
|
TileLayerOptions(
|
||||||
|
maxZoom: 20,
|
||||||
|
minZoom: 0,
|
||||||
urlTemplate:
|
urlTemplate:
|
||||||
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||||
subdomains: ['a', 'b', 'c'],
|
subdomains: ['a', 'b', 'c'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue