remove cameras from world map area

This commit is contained in:
stopflock
2025-08-07 11:27:50 -05:00
parent b1d29e443d
commit 0069f909ea
2 changed files with 51 additions and 44 deletions
+7 -3
View File
@@ -212,9 +212,13 @@ class OfflineAreaService {
}
// STEP 2: Fetch cameras for this bbox (all, not limited!)
final cameras = await _downloadAllCameras(bounds);
area.cameras = cameras;
await _saveCameras(cameras, directory);
if (!area.isPermanent) {
final cameras = await _downloadAllCameras(bounds);
area.cameras = cameras;
await _saveCameras(cameras, directory);
} else {
area.cameras = [];
}
await getAreaSizeBytes(area);
area.status = OfflineAreaStatus.complete;