more status indicator improvements

This commit is contained in:
stopflock
2025-08-26 19:37:27 -05:00
parent 84e057c986
commit d56a6e8e7c
4 changed files with 63 additions and 24 deletions
+1 -5
View File
@@ -136,15 +136,11 @@ class MapDataProvider {
// AUTO (default): try local first, then remote if not offline
try {
debugPrint('[MapDataProvider] Trying local tile $z/$x/$y (offline: $offline)');
return await fetchLocalTile(z: z, x: x, y: y);
} catch (e) {
debugPrint('[MapDataProvider] Local tile $z/$x/$y failed: $e');
} catch (_) {
if (!offline) {
debugPrint('[MapDataProvider] Falling back to remote for $z/$x/$y');
return _fetchRemoteTileFromCurrentProvider(z, x, y);
} else {
debugPrint('[MapDataProvider] Offline mode - no fallback for $z/$x/$y');
throw OfflineModeException("Tile $z/$x/$y not found in offline areas and offline mode is enabled.");
}
}