ULM
    Preparing search index...

    Class LayerManager<TLayer, TGroup>

    Framework-agnostic manager for an ordered collection of layers and layer groups.

    TLayer is the consumer's layer data type; TGroup is the group data type (defaults to TLayer when omitted). Lifecycle events are forwarded to both the optional LayerManagerAdapter and the callbacks in LayerManagerOptions.

    Type Parameters

    • TLayer
    • TGroup = undefined
    Index

    Accessors

    Constructors

    Methods

    • Shows or hides the layer with the given layerId.

      Parameters

      • layerId: string
      • visible: boolean

      Returns void

    • Sets the opacity (0–1) for the layer with the given layerId.

      Parameters

      • layerId: string
      • opacity: number

      Returns void