Require passing actual markers into SetMarkers
And frame locations of images and the report when a report is selected
This commit is contained in:
parent
741b60485c
commit
cd763efb15
3 changed files with 37 additions and 18 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue