Zoom in closer by default on task click
This commit is contained in:
parent
6d1003dcbd
commit
20c0b4487c
1 changed files with 2 additions and 14 deletions
|
|
@ -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 "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue