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

    Function overlaySvg

    • Create an SVG overlay postprocess function

      Helper function that returns a Postprocess function for backwards compatibility.

      Parameters

      • svgIcons: Record<string, string>

        Record mapping icon IDs to SVG strings

      Returns Postprocess

      Postprocess function that overlays SVG icons

      const postprocess = overlaySvg({ marker: '<svg>...</svg>' });
      // Use in registerNamedImageHandlers