add OSM Auto Map

This commit is contained in:
ericz
2026-05-25 11:56:01 +02:00
parent bdd0d3dee2
commit 531b85b8aa
3 changed files with 50 additions and 9 deletions
+3 -4
View File
@@ -147,8 +147,8 @@ class AppSettings {
this.mapCacheBounds,
this.mapCacheMinZoom = 10,
this.mapCacheMaxZoom = 15,
this.mapRasterSourceId = 'osm_standard',
this.mapTileEndpointId = 'standard',
this.mapRasterSourceId = 'osm_auto',
this.mapTileEndpointId = 'standard_2x',
this.mapTileApiKey,
this.notificationsEnabled = true,
this.notifyOnNewMessage = true,
@@ -276,8 +276,7 @@ class AppSettings {
),
mapCacheMinZoom: json['map_cache_min_zoom'] as int? ?? 10,
mapCacheMaxZoom: json['map_cache_max_zoom'] as int? ?? 15,
mapRasterSourceId:
json['map_raster_source_id'] as String? ?? 'osm_standard',
mapRasterSourceId: json['map_raster_source_id'] as String? ?? 'osm_auto',
mapTileEndpointId: json['map_tile_endpoint_id'] as String? ?? 'standard',
mapTileApiKey: json['map_tile_api_key'] as String?,
notificationsEnabled: json['notifications_enabled'] as bool? ?? true,