feat(directory): enhance cross streets callout, camera photos, and city search integration

This commit is contained in:
2026-09-12 09:47:29 -07:00
parent be8981d024
commit ef36bfb050
7 changed files with 197 additions and 58 deletions
+11 -5
View File
@@ -244,15 +244,21 @@
function getCameraMeta(camId) {
if (!cameraMetadata[camId]) {
// Default baseline
const isVerifiedPalmdale = (camId === 'cam-plm-1' || camId === 'cam-plm-9');
cameraMetadata[camId] = {
confirmations: 3, // Baseline community confirmations for directory portals
hasPhoto: false,
photoUrl: null,
photoDate: null,
photoAuthor: null,
confirmations: isVerifiedPalmdale ? 18 : 3, // Baseline community confirmations for directory portals
hasPhoto: isVerifiedPalmdale,
photoUrl: isVerifiedPalmdale ? 'assets/img/flock_pole_cam_palmdale.jpg' : null,
photoDate: isVerifiedPalmdale ? '2026-09-12' : null,
photoAuthor: isVerifiedPalmdale ? 'Driver Scout #814' : null,
isContested: false,
contests: []
};
} else if ((camId === 'cam-plm-1' || camId === 'cam-plm-9') && !cameraMetadata[camId].photoUrl) {
cameraMetadata[camId].hasPhoto = true;
cameraMetadata[camId].photoUrl = 'assets/img/flock_pole_cam_palmdale.jpg';
cameraMetadata[camId].photoDate = '2026-09-12';
cameraMetadata[camId].photoAuthor = 'Driver Scout #814';
}
return cameraMetadata[camId];
}