@terrestris/ol-util
    Preparing search index...

    Helper class for layer interaction.

    LayerUtil

    Index

    Constructors

    Methods

    • Returns the extent of the given layer as defined in the appropriate Capabilities document.

      Parameters

      • layer: WmsLayer
      • fetchOpts: RequestInit = {}

        Optional fetch options to make use of while requesting the Capabilities.

      Returns Promise<Extent>

      The extent of the layer.

    • Returns all attributions as text joined by a separator.

      Parameters

      • layer: Layer

        The layer to get the attributions from.

      • separator: string = ', '

        The separator separating multiple attributions.

      • removeDuplicates: boolean = false

        Whether to remove duplicated attribution strings or not.

      Returns string

      The attributions.