Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies dirty hacks to the Esri layers to make requests work offline. This relies upon undocumented functionality and may break between releases. (But rarely has! Whew.)

Hierarchy

  • EsriLayerHacker

Index

Constructors

Properties

Constructors

constructor

  • Constructor.

    Parameters

    • app: ViewerApplication
    • urlRewriter: function

      The function that rewrites tile requests, or returns null to not rewrite it. Can be set on the fly.

        • (url: string): string
        • Parameters

          • url: string

          Returns string

    Returns EsriLayerHacker

Properties

app

errorReporter

errorReporter: function

Callback for errors produced by invalid requests.

Type declaration

    • (error: string): void
    • Parameters

      • error: string

      Returns void

urlRewriter

urlRewriter: function

Type declaration

    • (url: string): string
    • Parameters

      • url: string

      Returns string