feat(views/geomap): add template

This commit is contained in:
Elian Doran
2025-07-06 18:52:00 +03:00
parent d15fccb1d8
commit 7b1c058d29
2 changed files with 28 additions and 1 deletions

View File

@@ -380,7 +380,7 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
type: attr.type,
name: attr.name,
value: attr.value,
isInheritable: false
isInheritable: attr.isInheritable
}).save();
} else if (attr.name === "docName" || (existingAttribute.noteId.startsWith("_help") && attr.name === "iconClass")) {
if (existingAttribute.value !== attr.value) {

View File

@@ -43,6 +43,33 @@ export default function buildHiddenSubtreeTemplates() {
value: "table"
}
]
},
{
id: "_template_geo_map",
type: "book",
title: "Geo Map",
icon: "bx bx-map-alt",
attributes: [
{
name: "template",
type: "label"
},
{
name: "viewType",
type: "label",
value: "geoMap"
},
{
name: "hidePromotedAttributes",
type: "label"
},
{
name: "label:geolocation",
type: "label",
value: "promoted,alias=Geolocation,single,text",
isInheritable: true
}
]
}
]
};