Merge pull request #461 from ericszimmermann/ez_alternative_maps

Alternative Maps
This commit is contained in:
zjs81 authored and GitHub committed 2026-07-04 00:32:58 -07:00
commit 0f3961f3a2
55 files changed
+3537 -282

No files matched your search

+19
View File
@@ -120,6 +120,25 @@ class AppSettingsService extends ChangeNotifier {
);
}
Future<void> setMapRasterSourceId(String value) async {
await updateSettings(_settings.copyWith(mapRasterSourceId: value));
}
Future<void> setMapTileEndpointId(String value) async {
await updateSettings(_settings.copyWith(mapTileEndpointId: value));
}
Future<void> setMapTileApiKey(String? value) async {
final normalized = value?.trim();
await updateSettings(
_settings.copyWith(
mapTileApiKey: (normalized == null || normalized.isEmpty)
? null
: normalized,
),
);
}
Future<void> setNotificationsEnabled(bool value) async {
await updateSettings(_settings.copyWith(notificationsEnabled: value));
}