helps with load speed and number of connection refused messages

This commit is contained in:
stopflock
2025-07-18 15:40:49 -05:00
parent eee92f4f21
commit f06894062f
4 changed files with 52 additions and 31 deletions
+7 -3
View File
@@ -11,8 +11,12 @@ class OsmCameraNode {
required this.tags,
});
bool get hasDirection => tags.containsKey('direction');
double? get directionDeg =>
hasDirection ? double.tryParse(tags['direction']!) : null;
bool get hasDirection =>
tags.containsKey('direction') || tags.containsKey('camera:direction');
double? get directionDeg {
final val = tags['direction'] ?? tags['camera:direction'];
return double.tryParse(val ?? '');
}
}