mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
feat(geomap): enable autopan for dragging markers
This commit is contained in:
parent
04367de112
commit
b2a5f06646
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user