Track lines: pure-expression layer filter (MapLibre rejects the mixed legacy "!has" form, so no line layer was added)
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-16 13:20:58 +01:00
1 parent acda303470
commit 07e22a87af
1 file changed
+1 -1
+1 -1
View File
@@ -594,7 +594,7 @@ export class GpxPanelControl {
id: `${linesId}-line`, id: `${linesId}-line`,
type: "line", type: "line",
source: linesId, source: linesId,
filter: ["any", ["!has", "category"], ["!=", ["get", "category"], "Note"]], filter: ["!=", ["get", "category"], "Note"], // also true without a category (null)
layout: { "line-cap": "round", "line-join": "round" }, layout: { "line-cap": "round", "line-join": "round" },
paint: { "line-color": ["coalesce", ["get", "color"], TRACK_COLOR], "line-width": 3 }, paint: { "line-color": ["coalesce", ["get", "color"], TRACK_COLOR], "line-width": 3 },
}); });