Constructors

  • Parameters

    • $timeout: ITimeoutService

      Angular timeout service.

    • ngeoOfflineServiceManager: default

      ngeo offline service Manager.

    • ngeoOfflineConfiguration: default

      ngeo offline configuration service.

    • ngeoOfflineMode: default

      Offline mode manager.

    • ngeoNetworkStatus: Service

      ngeo network status service.

    Returns Controller

    controller

    ngeoOfflineController

Properties

displayAlertAbortDownload: boolean

Whether the cancel download modal is displayed.

displayAlertLoadData: boolean

Whether the load data modal is displayed.

displayAlertNoLayer: boolean

Whether the "no layer" modal is displayed.

downloading: boolean

Whether the current view is downloading one.

estimatedLoadDataSize: number
extentSize: number

The size, in map units, of a side of the extent.

map: Map

The map.

maskMargin: number

Offline mask minimum margin in pixels.

maxZoom: number

Maximum zoom where offline is enable.

menuDisplayed: boolean

Whether the menu is currently displayed.

minZoom: number

Minimum zoom where offline is enable.

networkStatus: Service
offlineMode: default
originalMaxZoom: number

Map view min zoom constraint.

originalMinZoom: number

Map view max zoom constraint.

progressPercents: number

The progression of the data loading (0-100%).

rotateMask: boolean
selectingExtent: boolean

Whether the current view is the extent selection.

$inject: string[]

Methods

  • Activate offline mode. Zoom to the extent of that data and restore the data.

    Returns void

  • Returns boolean

    True if the extent is currently visible. False otherwise.

  • Toggle the selecting extent view.

    Parameters

    • Optionalfinished: boolean

      If just finished downloading.

    Returns void