Pan slowly on click on the nuisance map

This commit is contained in:
Eli Ribble 2026-02-03 17:22:32 +00:00
parent 82adb92d06
commit 8bed4fa2fa
No known key found for this signature in database
2 changed files with 9 additions and 6 deletions

View file

@ -125,12 +125,12 @@ class MapLocator extends HTMLElement {
this._map.jumpTo(args);
}
PanTo(coords, options) {
this._map.panTo(coords, options);
}
SetMarker(coords) {
console.log("Setting map marker", coords);
this._map.jumpTo({
center: coords,
zoom: 14,
});
this._markers.forEach((marker) => marker.remove());
const marker = new mapboxgl.Marker({