s2maps-gpu - v0.18.0
    Preparing search index...

    Interface NestedKey

    Nested Key

    Access value in feature properties by either its key or dive into a neste key

    • If the key is immediately accessible, set the key.
    • If the key is class for example, this would be used to filter feature's values where feature.properties.class === 'ocean'

    ex.

    { "filter": { "key": "class", "comparator": "==", "value": "ocean" } }
    
    • Nested conditions are used to dive into nested properties
    • If the feature properties has say feature.properties.class.type === 'ocean' and we want to access the type key

    ex.

    { "filter": { "key": { "nestedKey": ["class", "type"] }, "comparator": "==", "value": "ocean" } }
    

    ex.

    interface NestedKey {
        nestedKey: string[];
    }
    Index

    Properties

    Properties

    nestedKey: string[]

    nested conditions are used to dive into nested properties

    ex.

    { "filter": { "key": { "nestedKey": ["class", "type"] }, "comparator": "==", "value": "ocean" } }
    

    this would be used to filter features where feature.properties.class.type === 'ocean'