One of "==" | "!=" | ">" | ">=" | "<" | "<=" | "in" | "!in" | "has" | "!has"
"==" | "!=" | ">" | ">=" | "<" | "<=" | "in" | "!in" | "has" | "!has"
Used by the filter function to determine if a feature should be included in the render.
NOTE: "in" means "in the array" and "has" means "has the key"
NOTE
ex.
{ "filter": { "key": "type", "comparator": "in", "value": ["ocean", "lake"] } } Copy
{ "filter": { "key": "type", "comparator": "in", "value": ["ocean", "lake"] } }
this would be used to filter features where feature.properties.type is either "ocean" or "lake"
feature.properties.type
{ "filter": { "key": "type", "comparator": "has", "value": "ocean" } } Copy
{ "filter": { "key": "type", "comparator": "has", "value": "ocean" } }
this would be used to filter features where feature.properties.type is an array that has the key "ocean"
Comparator
One of
"==" | "!=" | ">" | ">=" | "<" | "<=" | "in" | "!in" | "has" | "!has"
Used by the filter function to determine if a feature should be included in the render.
NOTE
: "in" means "in the array" and "has" means "has the key"ex.
this would be used to filter features where
feature.properties.type
is either "ocean" or "lake"ex.
this would be used to filter features where
feature.properties.type
is an array that has the key "ocean"