@americana/maplibre-shield-generator
    Preparing search index...

    Class AbstractShieldRenderer

    Base class for shield renderers. Shield renderers use a builder pattern to configure its options.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Get a blank route shield graphics context in a specified size

      Parameters

      Returns CanvasRenderingContext2D

    • Get a blank route shield sprite in the default size

      Returns CanvasRenderingContext2D

    • Get the graphic for a specified route

      Parameters

      • network: string
      • ref: string
      • name: string

      Returns CanvasRenderingContext2D

    • Get the handler function for styleimagemissing event calls

      See MapStyleImageMissingEvent for more details.

      Returns (e: MapStyleImageMissingEvent) => void