Skip to content

Commit 28471a5

Browse files
authored
Replace ["geometry-type"] with "$type"
Related to maplibre/maplibre-style-spec#519 and maplibre/maplibre-gl-js#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"`.
1 parent d709a51 commit 28471a5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

layers/transportation/style.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4529,9 +4529,7 @@
45294529
"all",
45304530
[
45314531
"==",
4532-
[
4533-
"geometry-type"
4534-
],
4532+
"$type",
45354533
"LineString"
45364534
],
45374535
[
@@ -4633,9 +4631,7 @@
46334631
"all",
46344632
[
46354633
"==",
4636-
[
4637-
"geometry-type"
4638-
],
4634+
"$type",
46394635
"LineString"
46404636
],
46414637
[
@@ -7834,4 +7830,4 @@
78347830
"order": 183
78357831
}
78367832
]
7837-
}
7833+
}

0 commit comments

Comments
 (0)