GeoLeaf Core API - v3.0.0
    Preparing search index...

    One entry of a layer's styleRules: a predicate and the paint it applies when matched.

    when and style are both required by the validator despite being optional here — the type describes what may be parsed, the validator what must be present.

    interface StyleRule {
        when?: StyleRuleWhen;
        style?: Record<string, unknown>;
        legend?: Record<string, unknown>;
    }
    Index

    Properties

    Properties

    Predicate selecting the features this rule paints.

    style?: Record<string, unknown>

    Paint properties applied to matching features.

    legend?: Record<string, unknown>

    Legend entry derived from this rule.