app launches again, sorta working, map broken, settings page has configurable max cams.

This commit is contained in:
stopflock
2025-08-10 13:15:48 -05:00
parent 641344271f
commit 96f3a9f108
10 changed files with 152 additions and 20 deletions
@@ -12,6 +12,7 @@ Future<List<OsmCameraNode>> camerasFromOverpass({
required LatLngBounds bounds,
required List<CameraProfile> profiles,
UploadMode uploadMode = UploadMode.production,
int? maxCameras,
}) async {
if (profiles.isEmpty) return [];
@@ -24,12 +25,13 @@ Future<List<OsmCameraNode>> camerasFromOverpass({
const String prodEndpoint = 'https://overpass-api.de/api/interpreter';
final limit = maxCameras ?? AppState.instance.maxCameras;
final query = '''
[out:json][timeout:25];
(
$nodeClauses
);
out body 250;
out body $limit;
''';
try {