Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/offline/utils

Index

Functions

  • normalizeURL(url: string): string
  • Extract the part after the URL authority.

    Parameters

    • url: string

      A URL to normalize

    Returns string

    The normalized string.

  • traverseLayer(layer: BaseLayer, ancestors: LayerGroup[], visitor: ((arg0: BaseLayer, arg1: LayerGroup[]) => boolean)): void
  • Parameters

    • layer: BaseLayer

      A layer tree.

    • ancestors: LayerGroup[]

      The groups to which the layer belongs to.

    • visitor: ((arg0: BaseLayer, arg1: LayerGroup[]) => boolean)

      A function which will return false if descend must stop.

        • (arg0: BaseLayer, arg1: LayerGroup[]): boolean
        • Parameters

          • arg0: BaseLayer
          • arg1: LayerGroup[]

          Returns boolean

    Returns void

Generated using TypeDoc