feat(directory): list specific camera nodes with cross-streets and photos in city search
This commit is contained in:
+18
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user