Skip to content
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

How to run a filter with "LIKE" parameter? #350

Closed
dmitrykinakh opened this issue Jul 25, 2018 · 4 comments
Closed

How to run a filter with "LIKE" parameter? #350

dmitrykinakh opened this issue Jul 25, 2018 · 4 comments

Comments

@dmitrykinakh
Copy link

In QGIS I'm able to style my data by filtering them into several categories. On the screenshot, I'm showing that I want to filter in Maputnik all of the layers that start with "A %". How I can repeat the same in Maputnik?

image

@dmitrykinakh
Copy link
Author

@orangemug - could you please take a look on this?

@orangemug
Copy link
Collaborator

I'm not 100% sure about this, but I don't think mapbox-gl-js supports this. Take a read of the spec at https://www.mapbox.com/mapbox-gl-js/style-spec, I think your best bet would be to add a extra field to your data, something like type, and match on that instead.

@dmitrykinakh
Copy link
Author

@orangemug, thanks!

@orangemug
Copy link
Collaborator

No worries, also welcome to Maputnik!

If you have time please fill out the survey in the app, and/or tell us what you're using Maputnik for over in issue #164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants