Zoom in closer by default on task click

This commit is contained in:
Eli Ribble 2026-03-12 00:37:43 +00:00
parent 6d1003dcbd
commit 20c0b4487c
No known key found for this signature in database

View file

@ -141,7 +141,6 @@
// Update map and aerial image
this.updateMap(task);
this.updateAerialImage(task);
},
// Stub: Update map display
@ -158,8 +157,8 @@
map.SetMarkers(markers);
const bounds = new maplibregl.LngLatBounds(
new maplibregl.LngLat(loc.longitude - 0.01, loc.latitude - 0.01),
new maplibregl.LngLat(loc.longitude + 0.01, loc.latitude + 0.01),
new maplibregl.LngLat(loc.longitude - 0.005, loc.latitude - 0.005),
new maplibregl.LngLat(loc.longitude + 0.005, loc.latitude + 0.005),
);
map.FitBounds(bounds, {
@ -167,17 +166,6 @@
});
},
// Stub: Update aerial image display
updateAerialImage(task) {
console.log("Updating aerial image for task:", task.id);
// TODO: Load aerial image
// Example implementation:
// const imageEl = document.getElementById('aerial-image');
// if (imageEl && task.aerialImageUrl) {
// imageEl.src = task.aerialImageUrl;
// }
},
// Format relative time
formatRelativeTime(dateString) {
if (!dateString) return "";