i have a layer that i want to filter by multiple values stored in array
let filter = ['in','id', 1,2,3]
map.setFilter('layer_name',filter)
this works fine and it will return only features with ID 1,2,3
but in Mapbox GL specs, they label this in
expression as deprecated
https://www.mapbox.com/mapbox-gl-js/style-spec/#other-filter
and encourage using the new expressions, i think the expression match
would work but don't know know it should look like, i tried to do like
['match', 'get', 'id', 1,2,3 ];
it's not really that clear in the Docs so if anyone can clarify it please