implements {import('ngeo/offline/index').OfflineOnTileDownload}

Hierarchy

  • Observable
    • default

Constructors

  • Ng Inject

    Parameters

    • $rootScope: IScope

      The rootScope provider.

    • ngeoBackgroundLayerMgr: MapBackgroundLayerManager

      Background layer manager.

    • ngeoOfflineGutter: number

      A gutter around the tiles to download (to avoid cut symbols)

    Returns default

Properties

localforage_: any

Methods

  • Returns

    An "estimation" of the size of the data to download

    Parameters

    • map: Map

      A map

    Returns number

  • Returns

    The extent to download per zoom level

    Parameters

    • map: Map

      A map

    • layer: Layer<Source, LayerRenderer<any>>

      A layer

    • ancestors: LayerGroup[]

      The ancestors of that layer

    • userExtent: Extent

      The extent selected by the user.

    Returns OfflineExtentByZoom[]

  • Returns

    A promise

    Parameters

    • progress: number

      The progress

    Returns Promise<void>

  • Parameters

    • value: boolean

      whether there is offline data available in the storage.

    Returns void

  • Returns

    A promise

    Parameters

    • key: string

      The key

    • value: any

      A value

    Returns Promise<any>

  • Hook to allow measuring get/set item performance.

    Returns

    The promise we passed

    Parameters

    • msg: string

      A message

    • key: string

      The key to work on

    • promise: Promise<any>

      A promise

    Returns Promise<any>

Generated using TypeDoc