Sorta working suspected locations

This commit is contained in:
stopflock committed 2025-10-06 21:07:08 -05:00
1 parent 904af42cbf
commit 4a44ab96d6
7 files changed
+316 -104

No files matched your search

+15 -16
View File
@@ -12,8 +12,20 @@ class SuspectedLocationState extends ChangeNotifier {
/// Currently selected suspected location (for detail view)
SuspectedLocation? get selectedLocation => _selectedLocation;
/// All suspected locations
List<SuspectedLocation> get locations => _service.locations;
/// Get suspected locations in bounds (this should be called by the map view)
List<SuspectedLocation> getLocationsInBounds({
required double north,
required double south,
required double east,
required double west,
}) {
return _service.getLocationsInBounds(
north: north,
south: south,
east: east,
west: west,
);
}
/// Whether suspected locations are enabled
bool get isEnabled => _service.isEnabled;
@@ -62,18 +74,5 @@ class SuspectedLocationState extends ChangeNotifier {
notifyListeners();
}
/// Get suspected locations within a bounding box
List<SuspectedLocation> getLocationsInBounds({
required double north,
required double south,
required double east,
required double west,
}) {
return _service.getLocationsInBounds(
north: north,
south: south,
east: east,
west: west,
);
}
}