mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
perf: do not filter markers
This commit is contained in:
parent
5d722eef98
commit
94c073e58f
3 changed files with 22 additions and 12 deletions
|
|
@ -41,7 +41,7 @@ class MapStateNotifier extends Notifier<MapState> {
|
|||
// This provider watches the markers from the map service and serves the markers.
|
||||
// It should be used only after the map service provider is overridden
|
||||
final mapMarkerProvider =
|
||||
StreamProvider.family<Map<String, dynamic>, LatLngBounds>(
|
||||
StreamProvider.family<Map<String, dynamic>, LatLngBounds?>(
|
||||
(ref, bounds) async* {
|
||||
final mapService = ref.watch(mapServiceProvider);
|
||||
yield* mapService.watchMarkers(bounds).map((markers) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue