From 3f0ba7ceba93fc5942c8e62c9dc6eb49b872ad8d Mon Sep 17 00:00:00 2001 From: zstadler Date: Thu, 28 Mar 2024 11:52:38 +0200 Subject: [PATCH] Replace `["geometry-type"]` with `"$type"` (#1646) Related to https://github.com/maplibre/maplibre-style-spec/pull/519 and https://github.com/maplibre/maplibre-gl-js/issues/3516 According to the Style Spec, `["geometry-type"]` is expected to distinguish between LineString and MultiLineString, while `"$type"` does not. For the transportation layer, the distinction is harmful. All of OMT style layers, except these two, use `"$type"`. --- layers/transportation/style.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/layers/transportation/style.json b/layers/transportation/style.json index 92dddfa8..07f8e03d 100644 --- a/layers/transportation/style.json +++ b/layers/transportation/style.json @@ -4529,9 +4529,7 @@ "all", [ "==", - [ - "geometry-type" - ], + "$type", "LineString" ], [ @@ -4633,9 +4631,7 @@ "all", [ "==", - [ - "geometry-type" - ], + "$type", "LineString" ], [ @@ -7834,4 +7830,4 @@ "order": 183 } ] -} \ No newline at end of file +}