Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(views/geomap): support recursive notes
Elian Doran282aed22b5b9
diff --git a/apps/client/src/entities/fnote.ts b/apps/client/src/entities/fnote.tsindex ad5f0e556f..6099cba35a 100644--- a/apps/client/src/entities/fnote.ts+++ b/apps/client/src/entities/fnote.ts@@ -265,6 +265,11 @@ class FNote {return noteIds.flat();}+ async getSubtreeNotes() {+ const noteIds = await this.getSubtreeNoteIds();+ return this.froca.getNotes(noteIds);+ }+async getChildNotes() {return await this.froca.getNotes(this.children);}diff --git a/apps/client/src/widgets/view_widgets/geo_view/index.ts b/apps/client/src/widgets/view_widgets/geo_view/index.tsindex 0ea27e61b1..bb6e26b6ef 100644--- a/apps/client/src/widgets/view_widgets/geo_view/index.ts+++ b/apps/client/src/widgets/view_widgets/geo_view/index.ts@@ -226,7 +226,7 @@ export default class GeoView extends ViewMode<MapData> {// Add the new markers.this.currentMarkerData = {};- const notes = await this.parentNote.getChildNotes();+ const notes = await this.parentNote.getSubtreeNotes();const draggable = !this.isReadOnly;for (const childNote of notes) {if (childNote.mime === "application/gpx+xml") {