mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-06-11 01:07:48 +02:00
remove cameras from world map area
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user