π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Filter out (0, 0) coordinates in collection map dialog
Anand Baburajan3f6fb61d8d0d
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsxindex 5186b30036..7086ffe8ee 100644--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx@@ -761,6 +761,7 @@ function extractLocationPoints(files: EnteFile[]): JourneyPoint[] {for (const file of files) {const loc = fileLocation(file);if (!loc) continue;+ if (loc.latitude === 0 && loc.longitude === 0) continue; // Ignore invalid default coordinatespoints.push({lat: loc.latitude,diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.tsindex 8928701dd2..b4d25be227 100644--- a/web/packages/media/file-metadata.ts+++ b/web/packages/media/file-metadata.ts@@ -505,7 +505,6 @@ export const fileLocation = (file: EnteFile): Location | undefined => {if (latitude === undefined || longitude === undefined) return undefined;if (Number.isNaN(latitude) || Number.isNaN(longitude)) return undefined;- // (0, 0) is in the Atlantic Ocean and indicates missing/default coordinates.if (latitude === 0 && longitude === 0) return undefined;return { latitude, longitude };