eurostat-map
    Preparing search index...

    Function registerLayerType

    • Registers a custom layer type so it can be used with map.addLayer() and, once the type itself is recognized elsewhere in the build chain, with eurostatmap.map(type).

      Parameters

      • type: string

        Unique layer type identifier

      • role: LayerRole

        'base' (paints shared region geometry, at most one per map) or 'overlay'

      • decorate: (layer: any, config: any) => void

        Function that attaches the layer's fluent API/behavior onto a created Layer

      Returns void