fix: Add app id to TileLayer user agent

This commit is contained in:
Vespe-r 2026-02-16 12:09:44 +00:00
parent ecd13b7efc
commit fe51d22b26
No known key found for this signature in database
GPG key ID: AA6D5C47FD125D82

View file

@ -3,6 +3,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import '../../../config/app_config.dart';
class MapBubble extends StatelessWidget {
final double latitude;
final double longitude;
@ -43,6 +45,7 @@ class MapBubble extends StatelessWidget {
minZoom: 0,
urlTemplate:
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
userAgentPackageName: AppConfig.appId,
subdomains: const ['a', 'b', 'c'],
),
MarkerLayer(