mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
fix(geomap): pixel perfect marker positioning
This commit is contained in:
parent
087d4790f4
commit
016a9e4a99
@ -156,15 +156,15 @@ export default class GeoMapTypeWidget extends TypeWidget {
|
||||
<img src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" />
|
||||
<span class="bx ${childNote.getIcon()}"></span>
|
||||
`,
|
||||
iconSize: [ 25, 42 ],
|
||||
iconAnchor: [ 7, 42 ]
|
||||
iconSize: [ 25, 41 ],
|
||||
iconAnchor: [ 12, 41 ]
|
||||
})
|
||||
|
||||
const marker = L.marker(L.latLng(lat, lng), {
|
||||
icon,
|
||||
draggable: true,
|
||||
autoPan: true,
|
||||
autoPanSpeed: 5
|
||||
autoPanSpeed: 5,
|
||||
})
|
||||
.addTo(map)
|
||||
.bindPopup(childNote.title)
|
||||
|
Loading…
x
Reference in New Issue
Block a user