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"`.
pull/1650/head
zstadler 2024-03-28 11:52:38 +02:00 zatwierdzone przez GitHub
rodzic c2ae2503c8
commit 3f0ba7ceba
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

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