mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor: map query
This commit is contained in:
parent
d308d023c2
commit
5d722eef98
5 changed files with 78 additions and 51 deletions
|
|
@ -19,7 +19,7 @@ class MapBottomSheet extends ConsumerWidget {
|
|||
|
||||
return ProviderScope(
|
||||
overrides: [
|
||||
// TODO: refactor (timeline): when ProviderScope changed, we should refresh timeline
|
||||
// TODO: when ProviderScope changed, we should refresh timeline
|
||||
timelineServiceProvider.overrideWith((ref) {
|
||||
final timelineService =
|
||||
ref.watch(timelineFactoryProvider).map(bounds);
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ class _DriftMapWithMarkerState extends ConsumerState<DriftMapWithMarker> {
|
|||
}
|
||||
|
||||
await mapController!.addSource(
|
||||
MapUtils.defaultSourceId, GeojsonSourceProperties(data: markers),
|
||||
MapUtils.defaultSourceId,
|
||||
GeojsonSourceProperties(data: markers),
|
||||
);
|
||||
|
||||
if (Platform.isAndroid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue