feat(views/geomap): support recursive notes

This commit is contained in:
Elian Doran
2025-07-16 22:13:04 +03:00
parent 669a3d9dcf
commit 282aed22b5
2 changed files with 6 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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") {