Skip to content

Build your personal knowledge base with Trilium Notes

feat(geomap): the line of GPX traces now respects the `#color` attribute

Elian Dorand7c6c8f5fd2e
diff --git a/apps/client/src/widgets/type_widgets/geo_map.ts b/apps/client/src/widgets/type_widgets/geo_map.ts
index 81e1712a07..7f2b3e52a6 100644
--- a/apps/client/src/widgets/type_widgets/geo_map.ts
+++ b/apps/client/src/widgets/type_widgets/geo_map.ts
@@ -239,6 +239,9 @@ export default class GeoMapTypeWidget extends TypeWidget {
wptIcons: {
"": this.#buildIcon("bx bx-pin")
}
+ },
+ polyline_options: {
+ color: note.getLabelValue("color") ?? "blue"
}
});
track.addTo(this.geoMapWidget.map);