Merge pull request #2575 from Vespe-r/main
fix: Add app id to TileLayer user agent
This commit is contained in:
commit
e5000b83dd
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_map/flutter_map.dart';
|
import 'package:flutter_map/flutter_map.dart';
|
||||||
import 'package:latlong2/latlong.dart';
|
import 'package:latlong2/latlong.dart';
|
||||||
|
|
||||||
|
import '../../../config/app_config.dart';
|
||||||
|
|
||||||
class MapBubble extends StatelessWidget {
|
class MapBubble extends StatelessWidget {
|
||||||
final double latitude;
|
final double latitude;
|
||||||
final double longitude;
|
final double longitude;
|
||||||
|
|
@ -43,6 +45,7 @@ class MapBubble extends StatelessWidget {
|
||||||
minZoom: 0,
|
minZoom: 0,
|
||||||
urlTemplate:
|
urlTemplate:
|
||||||
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||||
|
userAgentPackageName: AppConfig.appId,
|
||||||
subdomains: const ['a', 'b', 'c'],
|
subdomains: const ['a', 'b', 'c'],
|
||||||
),
|
),
|
||||||
MarkerLayer(
|
MarkerLayer(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue