From 892ab02f0635c59bdca1e4633e505cf884fcb1f5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 10 Jul 2025 18:21:12 +0300 Subject: [PATCH] feat(popup_editor): integrate with geomap --- apps/client/src/widgets/view_widgets/geo_view/index.ts | 5 +++++ apps/client/src/widgets/view_widgets/geo_view/markers.ts | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/apps/client/src/widgets/view_widgets/geo_view/index.ts b/apps/client/src/widgets/view_widgets/geo_view/index.ts index 41608dbc2..4d35fd85a 100644 --- a/apps/client/src/widgets/view_widgets/geo_view/index.ts +++ b/apps/client/src/widgets/view_widgets/geo_view/index.ts @@ -29,6 +29,11 @@ const TPL = /*html*/` z-index: 1; } + .leaflet-top, + .leaflet-bottom { + z-index: 997; + } + .geo-map-container.placing-note { cursor: crosshair; } diff --git a/apps/client/src/widgets/view_widgets/geo_view/markers.ts b/apps/client/src/widgets/view_widgets/geo_view/markers.ts index 448da11d9..af836c252 100644 --- a/apps/client/src/widgets/view_widgets/geo_view/markers.ts +++ b/apps/client/src/widgets/view_widgets/geo_view/markers.ts @@ -36,10 +36,17 @@ export default function processNoteWithMarker(map: Map, note: FNote, location: s return true; } }); + newMarker.on("contextmenu", (e) => { openContextMenu(note.noteId, e, isEditable); }); + if (!isEditable) { + newMarker.on("click", (e) => { + appContext.triggerCommand("openInPopup", { noteIdOrPath: note.noteId }); + }); + } + return newMarker; }