map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface LayerTypeFactory

    Factory for layer types.

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

    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 }