mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-20 02:51:40 +08:00
feat(geomap): set custom icon for notes created from within the map
This commit is contained in:
parent
6b906a91d7
commit
259dcdb568
@ -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"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user