Fix up marker drag end event for detecting when the marker moves
This commit is contained in:
parent
27927c506e
commit
96e3441556
2 changed files with 3 additions and 2 deletions
|
|
@ -120,6 +120,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
mapZoom.value = e.target.getZoom();
|
||||
});
|
||||
mapLocator.addEventListener("markerdragend", (e) => {
|
||||
const marker = event.detail.marker;
|
||||
const lngLat = marker.getLngLat();
|
||||
//displaySelectedCoordinates(lngLat);
|
||||
geocodeReverse(MAPBOX_ACCESS_TOKEN, lngLat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue