mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 02:28:57 +01:00
9 lines
340 B
TypeScript
9 lines
340 B
TypeScript
import { LatLng } from "leaflet";
|
|
import { LOCATION_ATTRIBUTE } from ".";
|
|
import attributes from "../../../services/attributes";
|
|
|
|
export async function moveMarker(noteId: string, latLng: LatLng | null) {
|
|
const value = latLng ? [latLng.lat, latLng.lng].join(",") : "";
|
|
await attributes.setLabel(noteId, LOCATION_ATTRIBUTE, value);
|
|
}
|