maplibre-gl-svg-sprite - v0.2.0
    Preparing search index...

    Class IconExprBuilder

    Index

    Constructors

    • Parameters

      • route: string
      • Optionalinitial: Record<string, any>

      Returns IconExprBuilder

    Methods

    • Append raw query params (merged at the end).

      Parameters

      • params: Record<string, any>

      Returns this

    • Set overall width/height (CSS pixels).

      Parameters

      • width: number
      • Optionalheight: number

      Returns this

    • Force pixel ratio for HiDPI (omit to use device DPR).

      Parameters

      • ratio: number

      Returns this

    • Add overlay=... (string or expression) with optional placement/size.

      Parameters

      • value: any
      • Optionalopts: Record<string, any>

      Returns this

    • Add text=... (string or expression) with optional typography/placement.

      Parameters

      • value: any
      • Optionalopts: Record<string, any>

      Returns this

    • Add an arbitrary name=value pair; value may be expression or string.

      Parameters

      • name: string
      • value: any

      Returns this

    • Build the final MapLibre expression.

      Returns any