mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-07 21:27:57 +02:00
app launches again, sorta working, map broken, settings page has configurable max cams.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user