A shield renderer configured from a URL containing a JSON specification

Example

const shieldRenderer = new URLShieldRenderer("shields.json", routeParser)
.filterImageID(shieldPredicate)
.filterNetwork(networkPredicate)
.renderOnMaplibreGL(map)
.onShieldDefLoad((shields) => afterShieldRendererLoads(shields)); //Post config

Hierarchy

Constructors

Methods

  • Set the URL containing the shield specification

    Parameters

    • shieldsURL: URL

    Returns Promise<void>

Generated using TypeDoc