From 259dcdb568910a959fbdd0e914507463fb4ac613 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 21 Jan 2025 19:53:23 +0200 Subject: [PATCH] feat(geomap): set custom icon for notes created from within the map --- src/public/app/widgets/type_widgets/geo_map.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index 9e13f5925..9cdad23a7 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -70,6 +70,7 @@ const TPL = `\ `; const LOCATION_ATTRIBUTE = "latLng"; +const CHILD_NOTE_ICON = "bx bx-pin"; interface MapData { view?: { @@ -252,6 +253,7 @@ export default class GeoMapTypeWidget extends TypeWidget { content: "", type: "text" }); + attributes.setLabel(note.noteId, "iconClass", CHILD_NOTE_ICON); toastService.showMessage(t("relation_map.click_on_canvas_to_place_new_note"));