GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Generates a hatch pattern as an ImageData object for MapLibre.

      Parameters

      • hatchConfig: HatchConfig

        Hatch configuration from the GeoLeaf style.

      • pixelRatio: number = DEFAULT_PIXEL_RATIO

        Device pixel ratio for sharp rendering.

      Returns { imageData: ImageData; width: number; height: number; pixelRatio: number }

      { imageData, width, height, pixelRatio } ready for map.addImage().

      2