Interface for any object that can contain Layer.

interface HasLayers {
    hasLayers: true;
    get layerCount(): number;
    forEachLayer(callback: ((layer: Layer<LayerEvents, LayerUserData>) => void)): void;
    getLayers(predicate?: ((arg0: Layer<LayerEvents, LayerUserData>) => boolean)): Layer<LayerEvents, LayerUserData>[];
}

Implemented by

Properties

Accessors

Methods

Properties

hasLayers

Read-only flag to check if a given object is of type HasLayers.

Accessors

  • get layerCount(): number
  • Returns the number of layers currently in this object.

    Returns number

Methods