Skip to content

Commit

Permalink
Replace ["geometry-type"] with "$type"
Browse files Browse the repository at this point in the history
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"`.
  • Loading branch information
zstadler authored Mar 25, 2024
1 parent d709a51 commit 28471a5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions layers/transportation/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -4529,9 +4529,7 @@
"all",
[
"==",
[
"geometry-type"
],
"$type",
"LineString"
],
[
Expand Down Expand Up @@ -4633,9 +4631,7 @@
"all",
[
"==",
[
"geometry-type"
],
"$type",
"LineString"
],
[
Expand Down Expand Up @@ -7834,4 +7830,4 @@
"order": 183
}
]
}
}

0 comments on commit 28471a5

Please sign in to comment.