-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
An expression to check if an array contains a string #6473
Comments
It's not possible currently, but I agree that it's something we should add. |
I recently discovered that I am in need of a similar expression, but that also takes an array input containing multiple strings and compares them to the values in the feature array property, is that possible to look at in the same issue? |
That's too bad, is there a workaround? |
@Twansparant that also doesn't yet exist, but is something we're planning to add. Most directly tracked at #6228 |
Thanks for your replies @anandthakker! |
Duplicate of #4698. |
I have a geojson property which is an array. I would like to have an expression that checks if that array contains a certain string.
['has', 'mystring', ['get', 'myarray']]
Is this possible currently? If not, would it be possible to make the existing 'has' expression operate on arrays as well as objects?
The text was updated successfully, but these errors were encountered: