mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
feat(geomap): enable autopan for dragging markers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user