Options
All
  • Public
  • Public/Protected
  • All
Menu

Builds a bundle of rules on what to do while an offline map is active and applies them to outgoing network traffic.

Hierarchy

  • BundleManager

Index

Constructors

constructor

Properties

app

libraryId

libraryId: string

Methods

createBundle

  • Download Offline Resources.

    Parameters

    • bundleId: string

      the ID that will be given to this bundle.

    • basemaps: BundleBuilderContextBasemap[]

      information on how to direct basemap requests.

    • Optional progress: function

    Returns Promise<void>

deleteBundle

  • deleteBundle(bundleId: string): Promise<void>
  • Delete all resources stored for the given bundle.

    Parameters

    • bundleId: string

      The ID of the existing bundle.

    Returns Promise<void>

getResource

  • getResource(key: string): string
  • Parameters

    • key: string

    Returns string

getStoreResource

  • getStoreResource(bundleId: string, key: string): Promise<any>
  • Parameters

    • bundleId: string
    • key: string

    Returns Promise<any>

loadBundle

  • loadBundle(bundleId: string): Promise<void>
  • Make the bundle with the given ID the active bundle. After the returned promise resolves future offline routing and resources will come from the bundle.

    Parameters

    • bundleId: string

    Returns Promise<void>

setStoreResource

  • setStoreResource(bundleId: string, key: string, value: string): Promise<void>
  • Parameters

    • bundleId: string
    • key: string
    • value: string

    Returns Promise<void>

unloadBundle

  • unloadBundle(): Promise<void>
  • Return to a default state with no active bundle available. This should always be safe.

    Returns Promise<void>

updateBundle

  • Update all resources stored for the given bundle.

    Parameters

    • bundleId: string

      The ID of the existing bundle.

    • basemaps: BundleBuilderContextBasemap[]

      information on how to direct basemap requests.

    • Optional progress: function

    Returns Promise<void>

updatePrincipal

  • updatePrincipal(bundleId: string, principal: Principal): Promise<any>
  • Updates the principal in the bundle and persists it.

    Parameters

    Returns Promise<any>