Factory for layer types.

interface LayerTypeFactory {
    create(
        opts: Record<string, any>,
    ): Promise<{ instance: any }> | { instance: any };
    esriType?: string;
}

Properties

Methods

Properties

esriType?: string

Esri type of the layer produced e.g. "web-tiled". Transports the value of the layerInstance.type property

Methods

  • Creates instances of layers of a certain type.

    Parameters

    • opts: Record<string, any>

    Returns Promise<{ instance: any }> | { instance: any }