GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Registers a hatch pattern image on a MapLibre map instance.

      Parameters

      • mapArg: unknown

        The map. Typed unknown and named mapArg because cross-module callers (geojson, vector-tiles) pass a permissive structural view; the runtime value is always the native maplibregl.Map.

      • patternId: string

        Unique pattern ID (from buildHatchPatternId).

      • hatchConfig: HatchConfig

        Hatch configuration.

      • pixelRatio: number = DEFAULT_PIXEL_RATIO

        Device pixel ratio.

      Returns string

      The pattern ID (for use in fill-pattern).

      2