feat(directory): enhance cross streets callout, camera photos, and city search integration
This commit is contained in:
+11
-5
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user