跳到主要内容

flywave-mapview.workerbasedtiler

Home > @flywave/flywave-mapview > WorkerBasedTiler

WorkerBasedTiler class

Tiler based on [[ConcurrentWorkerSet]].

Tiles payloads using workers running in separate contexts (also known as WebWorkers): - connection establishment, - sends tile requests, - configuration.

Signature:

export declare class WorkerBasedTiler implements ITiler 

Implements: ITiler

Constructors

Constructor

Modifiers

Description

(constructor)(workerSet, tilerServiceType)

Creates a new WorkerBasedTiler.

Methods

Method

Modifiers

Description

connect()

Connects to [[WorkerServiceManager]]s in underlying [[ConcurrentWorkerSet]] and creates dedicated [[TilerService]]s in all workers to serve tiling requests.

dispose()

Dispose of dedicated tiler services in workers and remove reference to underlying [[ConcurrentWorkerSet]].

getTile(indexId, tileKey)

Retrieves a tile for a previously registered index.

registerIndex(indexId, input)

Register index in the tiler. Indexes registered in the tiler can be later used to retrieved tiled payloads using getTile.

updateIndex(indexId, input)

Update index in the tiler. Indexes registered in the tiler can be later used to retrieved tiled payloads using getTile.