Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Properties

Static defaultScriptUrl

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

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

Static defaultWorkerCount

defaultWorkerCount: number = 1

The default number of workers.

Methods

Static destroy

  • destroy(): void

Static destroyIfTerminated

  • destroyIfTerminated(): void

Static destroyWorkerSet

  • destroyWorkerSet(scriptUrl: string): void

Static getTiler

  • getTiler(tilerServiceType: string, scriptUrl?: undefined | string, workerCount?: undefined | number, workerConnectionTimeout?: undefined | number): ITiler
  • Returns a WorkerBasedTiler instance.

    Parameters

    • tilerServiceType: string

      The name of the tiler service type.

    • Optional scriptUrl: undefined | string

      The optional URL with the workers' script.

    • Optional workerCount: undefined | number

      The number of web workers to use.

    • Optional workerConnectionTimeout: undefined | number

      Timeout in seconds to connect to the web worker.

    Returns ITiler

Static getWorkerSet

  • getWorkerSet(scriptUrl?: undefined | string, workerCount?: undefined | number, workerConnectionTimeout?: undefined | number): ConcurrentWorkerSet

Generated using TypeDoc