mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-08-15 07:30:50 +02:00
helps with load speed and number of connection refused messages
This commit is contained in:
@@ -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