mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
feat(views/geomap): support recursive notes
This commit is contained in:
@@ -265,6 +265,11 @@ class FNote {
|
|||||||
return noteIds.flat();
|
return noteIds.flat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async getSubtreeNotes() {
|
||||||
|
const noteIds = await this.getSubtreeNoteIds();
|
||||||
|
return this.froca.getNotes(noteIds);
|
||||||
|
}
|
||||||
|
|
||||||
async getChildNotes() {
|
async getChildNotes() {
|
||||||
return await this.froca.getNotes(this.children);
|
return await this.froca.getNotes(this.children);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ export default class GeoView extends ViewMode<MapData> {
|
|||||||
|
|
||||||
// Add the new markers.
|
// Add the new markers.
|
||||||
this.currentMarkerData = {};
|
this.currentMarkerData = {};
|
||||||
const notes = await this.parentNote.getChildNotes();
|
const notes = await this.parentNote.getSubtreeNotes();
|
||||||
const draggable = !this.isReadOnly;
|
const draggable = !this.isReadOnly;
|
||||||
for (const childNote of notes) {
|
for (const childNote of notes) {
|
||||||
if (childNote.mime === "application/gpx+xml") {
|
if (childNote.mime === "application/gpx+xml") {
|
||||||
|
|||||||
Reference in New Issue
Block a user