From 59f221ca1298b424563f6acb244841909af9fd76 Mon Sep 17 00:00:00 2001 From: Max Weng Date: Wed, 31 Jul 2024 20:25:32 +0800 Subject: [PATCH] update transportation style filter format (#1672) The issue is transportation layer filter format not match maplibre style spec it cause tileserver-gl errors when parse the style.json: --------- Co-authored-by: Double Max --- layers/transportation/style.json | 56 ++++++++------------------------ 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/layers/transportation/style.json b/layers/transportation/style.json index 07f8e03d..7668a503 100644 --- a/layers/transportation/style.json +++ b/layers/transportation/style.json @@ -4535,29 +4535,15 @@ [ "all", [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, - true + "in", + "brunnel", + "bridge", + "tunnel" ], [ - "match", - [ - "get", - "class" - ], - [ - "minor" - ], - true, - false + "in", + "class", + "minor" ] ] ], @@ -4637,29 +4623,15 @@ [ "all", [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, - true + "in", + "brunnel", + "bridge", + "tunnel" ], [ - "match", - [ - "get", - "class" - ], - [ - "minor_construction" - ], - true, - false + "in", + "class", + "minor_construction" ] ] ],