Mapbox Studio Filter Expression triggering high memory usage and slower framerate.
Dylansc22 opened this issue · 0 comments
Dylansc22 commented
The below filter expression is triggering a warning saying:
Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
and paste the contents of this message in the report.
I'm doing my part! 🫡
Filter Expression:
[
"all",
[
">",
[
"get",
"way_area"
],
150000
],
[
"any",
[
"!",
[
"in",
"park",
[
"downcase",
[
"case",
[
"==",
[
"get",
"name"
],
null
],
"",
[
"get",
"name"
]
]
]
]
],
[
"!",
[
"in",
"park",
[
"downcase",
[
"case",
[
"==",
[
"get",
"name"
],
null
],
"",
[
"get",
"name"
]
]
]
]
]
],
[
"case",
[
"<=",
[
"pitch"
],
45
],
true,
[
"<=",
[
"distance-from-center"
],
2
]
]
]Filter Expression:
[
"all",
[
">",
[
"get",
"way_area"
],
150000
],
[
"any",
[
"!",
[
"in",
"park",
[
"downcase",
[
"case",
[
"==",
[
"get",
"name"
],
null
],
"",
[
"get",
"name"
]
]
]
]
],
[
"!",
[
"in",
"park",
[
"downcase",
[
"case",
[
"==",
[
"get",
"name"
],
null
],
"",
[
"get",
"name"
]
]
]
]
]
],
[
"case",
[
"<=",
[
"pitch"
],
45
],
true,
[
"<=",
[
"distance-from-center"
],
2
]
]
]