@geoblocks/ol-comfy
    Preparing search index...

    Parent (abstract) class for a layer group. Helps to manipulate one layer group. The child class must start by setting the layerGroup. It extends ol/Object to be able to listen to events and dispatch them.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Add a single layer at the end of the layer group.

      Parameters

      • layer: BaseLayer

        Ol layer.

      • layerUid: string

        id of the layer.

      Returns void

    • Remove all layers from the map and clear the layer group.

      Returns void

    • Fires an "affected" layer event.

      Parameters

      • layerUid: string
      • reason: string

      Returns void

    • Fires a "LayerPropertyChanged" and call a "changed" event on the matching OL layer.

      Parameters

      • layerUid: string
      • propertyKey: string

      Returns void

    • Returns Source[]

      Every source from layers having sources in the layer group.

    • Retrieve a layer currently in the layer group.

      Parameters

      • layerUid: string

      Returns BaseLayer | null

      The matching layer or null.

    • Refresh the source of every layer with a source in the layer group.

      Returns void

    • Set a property of a layer and fires a "LayerPropertyChanged" event if the value has changed.

      Parameters

      • layerUid: string
      • propertyKey: string
      • value: unknown

      Returns void