-
{
"id": "railway",
"type": "line",
"source": "osm-tiles",
"source-layer": "transportation",
"minzoom": 13,
"filter": [
"all",
[
"==", "$type", "LineString",
[
"all",
["!has", "service"],
["==", "class", "rail"]
]
]],
"layout":{
"line-join": "round",
"visibility": "visible"
},
"paint":{
"line-color": "#06789D",
"line-width": {
"base": 1.3,
"stops": [
[16, 3],
[20, 7]
]
}
}
}, "!has" filter can not support! |
Beta Was this translation helpful? Give feedback.
Answered by
qmjy
Jan 16, 2025
Replies: 3 comments
-
!has is a deprecated expression, it is recommended to use a modern one. |
Beta Was this translation helpful? Give feedback.
0 replies
-
["!", ["has", "service"]] |
Beta Was this translation helpful? Give feedback.
0 replies
-
I update to v5.0.1 from v4.5.1, then solved! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
qmjy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I update to v5.0.1 from v4.5.1, then solved!