-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Document "in" expression #9222
Comments
The The I'm not sure about completely removing the filter syntax from the docs since it's still valid, but we do need to update it to remove references to the |
Ah, yes, makes sense, sorry.
My other reason for suggesting this is that navigating the docs is harder when there are multiple sets of things with the same name. I don't know about other people, but my main method to look up a definition is to do a find within the page, say for I sort of understand the desire to keep documentation around to help people who are coming across existing code. But if this syntax is truly "deprecated" then surely we don't want anyone writing it anymore, in order that it can be completely removed from mapbox-gl at some point in the future. So maybe moving it out of the main documentation to some other dumping ground might be a step on that journey :) |
I'm working on updating the docs so that the I understand your rationale for removing the filter syntax entirely. I'm all for removing dead weight whenever possible. We still get a significant number of questions and issues about filter syntax however, so I worry that it's too widely used for us to remove it from the docs. It would definitely need to be a team decision. Would you want to open a separate issue explicitly about this and we can tag it with In the meantime, I'll also remove references to the |
Capturing here that the style spec docs were significantly redesigned and launched just within the last day. The new design clearly marks the filter syntax as Legacy and breaks the expression docs and filter docs into separate pages which makes searching for operator names easier. I'm not going to change the filter docs at this time. |
Closed via https://github.com/mapbox/mapbox-gl-js-docs/pull/202 The |
The new "in" operator (#8876) somehow missed getting documented.
Note the word "deprecated" can be removed from this sentence about
match
:Also, it seems to me that with this inclusion, everything that was possible with the old filter syntax is now easily possible with expressions, simply by replacing
key
with["get", key]
. (Except"none"
which is just["!", ["any", ...]]
So it might be time to finally completely remove the deprecated filter syntax documentation. It's much safer in general to avoid ever using it, so you don't fall into weird traps when you try to do things that it doesn't support.
The text was updated successfully, but these errors were encountered: