finally getting close. actually loading offline areas is the last thing remaining afaict

This commit is contained in:
stopflock
2025-08-10 15:45:21 -05:00
parent 16ad49198f
commit 3596d4ee99
5 changed files with 31 additions and 15 deletions
+1 -6
View File
@@ -62,12 +62,7 @@ class MapDataProvider {
required int y,
MapSource source = MapSource.auto,
}) async {
final offline = AppState.instance.offlineMode;
print('[MapDataProvider] getTile called for $z/$x/$y, source=$source, offlineMode=$offline');
if (offline && source != MapSource.local) {
print('[MapDataProvider] BLOCKED by offlineMode for $z/$x/$y');
throw OfflineModeException("Cannot fetch remote tiles in offline mode.");
}
print('[MapDataProvider] getTile called for $z/$x/$y, source=$source');
if (source == MapSource.local) {
// TODO: implement local tile loading
throw UnimplementedError('Local tile loading not yet implemented.');