A collection of layer extensions.

interface LayerExtensionCollection<TProps> {
    initializedItems: ReadOnlyCollection<LayerExtension<LayerExtensionProperties>>;
    findById(id: string): LayerExtension<TProps>;
    findByLayerId(id: string): LayerExtension<TProps>;
    forLayer(layer: Layer): LayerExtension<TProps>;
}

Type Parameters

Hierarchy (view full)

Implemented by

Properties

Returns a collection of the initialized items.

Methods

  • Get the corresponding layer extension for a given layer id.

    Parameters

    • id: string

      The id of the layer.

    Returns LayerExtension<TProps>

    The corresponding layer extension.

  • Gets the corresponding layer extension for a given layer.

    Parameters

    • layer: Layer

      A layer on the map.

    Returns LayerExtension<TProps>

    The corresponding layer extension.