feat(geomap): enable autopan for dragging markers

This commit is contained in:
Elian Doran 2025-01-21 15:39:20 +02:00
parent 04367de112
commit b2a5f06646
No known key found for this signature in database

View File

@ -128,7 +128,9 @@ export default class GeoMapTypeWidget extends TypeWidget {
const [ lat, lng ] = latLng.split(",", 2).map((el) => parseFloat(el));
const marker = L.marker(L.latLng(lat, lng), {
draggable: true
draggable: true,
autoPan: true,
autoPanSpeed: 5
})
.addTo(map)
.bindPopup(childNote.title)