Skip to content

Build your personal knowledge base with Trilium Notes

feat(views/geomap): add template

Elian Doran7b1c058d2932
diff --git a/apps/server/src/services/hidden_subtree.ts b/apps/server/src/services/hidden_subtree.ts
index 6ba0d965b3..8b6c7e9fbc 100644
--- a/apps/server/src/services/hidden_subtree.ts
+++ b/apps/server/src/services/hidden_subtree.ts
@@ -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) {
diff --git a/apps/server/src/services/hidden_subtree_templates.ts b/apps/server/src/services/hidden_subtree_templates.ts
index 62c8418984..cfe61922ce 100644
--- a/apps/server/src/services/hidden_subtree_templates.ts
+++ b/apps/server/src/services/hidden_subtree_templates.ts
@@ -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
+ }
+ ]
}
]
};