-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maplibre >=4.2.0: can't use "within" filter in "all" filter anymore: ["all", ["within", ...], ...] #4212
Comments
Can you try and find the last version this worked? |
Use ["!", [in, ...]] Instead of !in also. |
Thanks a lot for the quick response! When I try converting
I will try to convert everything to "new" expression syntax, and let you know which specific version causes the issue next week! |
I've tested the issue with several versions, and it seems that it appeared between 4.1.3 and 4.2.0. Working example : (4.1.3) https://jsbin.com/fisuyubuna/edit?html,css,js,output And I confinrm I can't find a way to use ["!", ["in"... instead of ["!in", getting the error I mentioned in my previous comment. For more precision:
|
I think it's the distance support and the changes I made here: If you turn style validation off, does it work with latest version? |
I have added validateStyle: false in the map options, and it does not seem to change anything: https://jsbin.com/qikecefawi/edit?html,css,js,output |
I don't think there's an easy way to check that the syntax is ok besides using the validation function, which doesn't help much. |
I managed to convert all my filter to "new" syntax, I needed more ["get", "..."] and ["literal",["...", |
@azarz can you help me update the following doc to better explain how to migrate from old syntax to new syntax: |
I've opened the following PR: Let me know what you think. |
Hi, thank you for the amazing work on Maplibre GL JS! Without it, we could not have made anything close to what we made. I am running into an issue while trying to upgrade from 3.6.2 to 4.3.2
maplibre-gl-js version: 4.3.2
browser: Chromium
Steps to Trigger Behavior (4.3.2)
Link to Demonstration
Filter working (maplibre gl js 3.6.2) : https://jsbin.com/dozeqofofa/1/edit?html,css,js,output
Filter not working (maplibre gl js 4.3.2) : https://jsbin.com/wuzowelebo/1/edit?html,css,js,output
Expected Behavior (3.6.2)
The text was updated successfully, but these errors were encountered: