Class ConcurrentTilerFacade

Default concurrent tiler helper.

A convenient singleton that maintains a separate [[ConcurrentWorkerSet]] for each bundle requested. Provides easy access to WorkerBasedTilers for data sources.

Hierarchy

  • ConcurrentTilerFacade

Constructors

Properties

defaultScriptUrl: string = "./decoder.bundle.js"

The URL containing a script to fall back (default) to when looking for worker sets and tilers.

defaultWorkerCount: number = 1

The default number of workers.

Methods

  • Returns a WorkerBasedTiler instance.

    Parameters

    • tilerServiceType: string

      The name of the tiler service type.

    • Optional scriptUrl: string

      The optional URL with the workers' script.

    • Optional workerCount: number

      The number of web workers to use.

    • Optional workerConnectionTimeout: number

      Timeout in seconds to connect to the web worker.

    Returns ITiler

  • Returns a [[ConcurrentWorkerSet]] instance based on the script URL specified.

    Parameters

    • Optional scriptUrl: string

      The optional URL with the workers' script. If not specified, the function uses [[defaultScriptUrl]] instead.

    • Optional workerCount: number

      The number of web workers to use.

    • Optional workerConnectionTimeout: number

      Timeout in seconds to connect to the web worker.

    Returns ConcurrentWorkerSet

Generated using TypeDoc