feat(directory): list specific camera nodes with cross-streets and photos in city search

This commit is contained in:
2026-09-12 09:43:21 -07:00
parent 0e47dfa1d8
commit be8981d024
5 changed files with 440 additions and 11 deletions
+18
View File
@@ -269,6 +269,7 @@
zoomControl: false,
attributionControl: false
});
window.flockMap = map;
// High-Resolution Radar Dark Tiles (Zero API Key, Zero Watermarks, Sub-Meter Street Clarity up to Zoom 19)
darkTileLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
@@ -2089,6 +2090,23 @@
window.openAgencyModal(slug);
}
};
// Global camera list provider for Directory integration
window.getFlockAllCameras = function() {
return [...allCameras];
};
// Global jump from Directory straight to specific camera on Radar
window.jumpToRadarCamera = function(camId) {
if (el.navMapBtn) el.navMapBtn.click();
setTimeout(() => {
const cam = allCameras.find(c => c.id === camId);
if (cam && map) {
map.flyTo([cam.lat, cam.lng], 16, { animate: true, duration: 1.0 });
}
openCameraHardwareProof(camId);
}, 150);
};
}
function escapeHtml(str) {