GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Evaluates a style condition against a feature or two values. Supports both (leftValue, operator, rightValue) and (feature, { field, operator, value }) call signatures.

      Parameters

      • featureOrLeft: unknown

        A GeoJSON feature (2-arg form) or a left-hand value (3-arg form).

      • conditionOrOp: string | StyleConditionInput

        A condition object { field, operator, value } or an operator string.

      • OptionalrightValue: unknown

        The right-hand comparison value (3-arg form only).

      Returns boolean

      true if the condition is satisfied, false otherwise.