clean up overpass fetching

This commit is contained in:
stopflock
2025-08-29 16:52:50 -05:00
parent 3ddebd2664
commit eeedbd7da7
2 changed files with 74 additions and 69 deletions
+3 -6
View File
@@ -50,8 +50,7 @@ class MapDataProvider {
bounds: bounds,
profiles: profiles,
uploadMode: uploadMode,
pageSize: AppState.instance.maxCameras,
fetchAllPages: false,
maxResults: AppState.instance.maxCameras,
);
}
@@ -76,7 +75,7 @@ class MapDataProvider {
bounds: bounds,
profiles: profiles,
uploadMode: uploadMode,
pageSize: AppState.instance.maxCameras,
maxResults: AppState.instance.maxCameras,
);
} catch (e) {
debugPrint('[MapDataProvider] Remote node fetch failed, error: $e. Falling back to local.');
@@ -106,9 +105,7 @@ class MapDataProvider {
bounds: bounds,
profiles: profiles,
uploadMode: uploadMode,
fetchAllPages: true,
pageSize: pageSize,
maxTries: maxTries,
maxResults: pageSize,
);
}