I have a geojson with several polygons. Each polygon has a name. I want to display all polygons except for the "boundingBox". I use the filter in addLayer():
"filter": ["all",["==", "$type", "Polygon"],["!=",["string", ['get', 'name'],""], "boundingBox"]]
but no polygons show up.
If I do:
"filter": ["==", "$type", "Polygon"]
all polygons show up.
What is going wrong here?