Options
All
  • Public
  • Public/Protected
  • All
Menu

An extension to WorkerService, the TileDecoderService implements an asynchronous (message based) service to decode tile content in web workers. The TileDecoderService itself lives in the web worker, and communicates with messages by means of a ConcurrentWorkerSet with the application.

The TileDecoderService handles a DecodeTileRequest, which contains a tile and its freshly loaded binary data, decodes the content with the ITileDecoder that the service is configured to use, and sends the data back in form of a WorkerServiceResponse.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly serviceId

serviceId: string

Service id. Must be unique.

Methods

destroy

  • destroy(): void

Protected handleMessage

  • handleMessage(message: any): void

Protected handleRequest

Static start

Generated using TypeDoc