feat(geomap): set custom icon for notes created from within the map

This commit is contained in:
Elian Doran 2025-01-21 19:53:23 +02:00
parent 6b906a91d7
commit 259dcdb568
No known key found for this signature in database

View File

@ -70,6 +70,7 @@ const TPL = `\
</div>`; </div>`;
const LOCATION_ATTRIBUTE = "latLng"; const LOCATION_ATTRIBUTE = "latLng";
const CHILD_NOTE_ICON = "bx bx-pin";
interface MapData { interface MapData {
view?: { view?: {
@ -252,6 +253,7 @@ export default class GeoMapTypeWidget extends TypeWidget {
content: "", content: "",
type: "text" type: "text"
}); });
attributes.setLabel(note.noteId, "iconClass", CHILD_NOTE_ICON);
toastService.showMessage(t("relation_map.click_on_canvas_to_place_new_note")); toastService.showMessage(t("relation_map.click_on_canvas_to_place_new_note"));