Require passing actual markers into SetMarkers

And frame locations of images and the report when a report is selected
This commit is contained in:
Eli Ribble 2026-03-10 04:20:55 +00:00
parent 741b60485c
commit cd763efb15
No known key found for this signature in database
3 changed files with 37 additions and 18 deletions

View file

@ -48,7 +48,12 @@
}
function updateMap(signals) {
const map = document.querySelector("map-multipoint");
const markers = signals.map((s) => s.location);
const markers = signals.map((s) =>
new maplibregl.Marker({
color: "#FF0000",
draggable: false,
}).setLatLng([s.location.longitude, s.location.latitude]),
);
map.SetMarkers(markers);
bounds = getBoundingBox(markers);
map.FitBounds(bounds, {