mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(web): use timeline in geolocation manager (#21492)
This commit is contained in:
parent
5acd6b70d0
commit
7a1c45c364
20 changed files with 277 additions and 496 deletions
|
|
@ -187,6 +187,11 @@ export class MonthGroup {
|
|||
thumbhash: bucketAssets.thumbhash[i],
|
||||
people: null, // People are not included in the bucket assets
|
||||
};
|
||||
|
||||
if (bucketAssets.latitude?.[i] && bucketAssets.longitude?.[i]) {
|
||||
timelineAsset.latitude = bucketAssets.latitude?.[i];
|
||||
timelineAsset.longitude = bucketAssets.longitude?.[i];
|
||||
}
|
||||
this.addTimelineAsset(timelineAsset, addContext);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ export type TimelineAsset = {
|
|||
city: string | null;
|
||||
country: string | null;
|
||||
people: string[] | null;
|
||||
latitude?: number | null;
|
||||
longitude?: number | null;
|
||||
};
|
||||
|
||||
export type AssetOperation = (asset: TimelineAsset) => { remove: boolean };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue