Access value in feature properties by either its key or dive into a neste key
class
feature.properties.class === 'ocean'
ex.
{ "filter": { "key": "class", "comparator": "==", "value": "ocean" } } Copy
{ "filter": { "key": "class", "comparator": "==", "value": "ocean" } }
feature.properties.class.type === 'ocean'
type
{ "filter": { "key": { "nestedKey": ["class", "type"] }, "comparator": "==", "value": "ocean" } } Copy
{ "filter": { "key": { "nestedKey": ["class", "type"] }, "comparator": "==", "value": "ocean" } }
nested conditions are used to dive into nested properties
this would be used to filter features where feature.properties.class.type === 'ocean'
Nested Key
Access value in feature properties by either its key or dive into a neste key
Key
class
for example, this would be used to filter feature's values wherefeature.properties.class === 'ocean'
ex.
Nested Key
feature.properties.class.type === 'ocean'
and we want to access thetype
keyex.
ex.