mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-01 05:29:35 +02:00
helps with load speed and number of connection refused messages
This commit is contained in:
1 parent
eee92f4f21
commit
f06894062f
4 files changed
+52
-31
No files matched your search
@@ -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 ?? '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user