Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Observable
    • default

Index

Constructors

  • new default($rootScope: IScope, ngeoBackgroundLayerMgr: MapBackgroundLayerManager, ngeoOfflineGutter: number): default
  • nginject

    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

  • clear(): Promise<void>
  • configureLocalforage(): void
  • createLocalforage(): any
  • estimateLoadDataSize(map: Map): number
  • getExtentByZoom(map: Map, layer: Layer<Source, any>, ancestors: LayerGroup[], userExtent: Extent): OfflineExtentByZoom[]
  • Parameters

    • map: Map

      A map

    • layer: Layer<Source, any>

      A layer

    • ancestors: LayerGroup[]

      The ancestors of that layer

    • userExtent: Extent

      The extent selected by the user.

    Returns OfflineExtentByZoom[]

    The extent to download per zoom level

  • getItem(key: string): Promise<any>
  • getMaxNumberOfParallelDownloads(): number
  • hasOfflineData(): boolean
  • onTileDownloadError(progress: number): Promise<void>
  • onTileDownloadSuccess(progress: number, tile: OfflineTile): Promise<void>
  • removeItem(key: string): Promise<any>
  • setHasOfflineData(value: boolean): void
  • setItem(key: string, value: any): Promise<any>
  • traceGetSetItem(msg: string, key: string, promise: Promise<any>): Promise<any>
  • Hook to allow measuring get/set item performance.

    Parameters

    • msg: string

      A message

    • key: string

      The key to work on

    • promise: Promise<any>

      A promise

    Returns Promise<any>

    The promise we passed

Generated using TypeDoc