Skip to main content

flywave-mapview.concurrentdecoderfacade.gettiledecoder

Home > @flywave/flywave-mapview > ConcurrentDecoderFacade > getTileDecoder

ConcurrentDecoderFacade.getTileDecoder() method​

Returns a WorkerBasedDecoder instance.

Signature:

static getTileDecoder(decoderServiceType: string, scriptUrl?: string, workerCount?: number, workerConnectionTimeout?: number): ITileDecoder;

Parameters​

Parameter

Type

Description

decoderServiceType

string

The name of the decoder service type.

scriptUrl

string

(Optional) The optional URL with the workers' script.

workerCount

number

(Optional) The number of web workers to use.

workerConnectionTimeout

number

(Optional) Timeout in seconds to connect to the web worker.

Returns:



ITileDecoder