Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

how to filter for feature that does not have field #364

Closed
samanpwbb opened this issue Sep 29, 2015 · 3 comments
Closed

how to filter for feature that does not have field #364

samanpwbb opened this issue Sep 29, 2015 · 3 comments

Comments

@samanpwbb
Copy link
Contributor

How do I write a filter to show all features that do not have a particular field?

Something like this doesn't work:

["!in", "class", ""]

And

["in", "class", null]

results in an invalid stylesheet.

@tmcw
Copy link
Contributor

tmcw commented Sep 29, 2015

I would like to propose has and !has as operators:

["has", "class"]
["!has", "class"]

@jfirebaugh
Copy link
Contributor

👍 to adding has and !has.

@jfirebaugh
Copy link
Contributor

We did this.

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

No branches or pull requests

3 participants