Track lines: pure-expression layer filter (MapLibre rejects the mixed legacy "!has" form, so no line layer was added)
This commit is contained in:
1 parent
acda303470
commit
07e22a87af
1 file changed
+1
-1
+1
-1
@@ -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 },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user