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"`.
This commit is contained in:
zstadler 2024-03-28 11:52:38 +02:00 committed by GitHub
parent c2ae2503c8
commit 3f0ba7ceba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4529,9 +4529,7 @@
"all",
[
"==",
[
"geometry-type"
],
"$type",
"LineString"
],
[
@ -4633,9 +4631,7 @@
"all",
[
"==",
[
"geometry-type"
],
"$type",
"LineString"
],
[
@ -7834,4 +7830,4 @@
"order": 183
}
]
}
}