From 07e22a87afdd06ef4d6aea5432872d826eba43ad Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Mon, 16 Nov 2026 13:20:58 +0100 Subject: [PATCH] Track lines: pure-expression layer filter (MapLibre rejects the mixed legacy "!has" form, so no line layer was added) --- public/js/gpx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/gpx.js b/public/js/gpx.js index 1c55434..c0bd3d4 100644 --- a/public/js/gpx.js +++ b/public/js/gpx.js @@ -594,7 +594,7 @@ export class GpxPanelControl { id: `${linesId}-line`, type: "line", 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" }, paint: { "line-color": ["coalesce", ["get", "color"], TRACK_COLOR], "line-width": 3 }, });