跳到主要内容

flywave-mapview.itileloader

Home > @flywave/flywave-mapview > ITileLoader

ITileLoader interface​

The interface for managing tile loading.

Signature:

export interface ITileLoader 

Properties​

Property

Modifiers

Type

Description

decodedTile?

DecodedTile

(Optional) The result of decoding the payload: The [[DecodedTile]].

isFinished

readonly

boolean

true if [[Tile]] is still loading, false otherwise.

priority

number

Priority given to the tile loading task. The greater the number, the higher the priority.

state

TileLoaderState

Current state of TileLoader.

Methods​

Method

Description

cancel(client)

Cancel loading of the [[Tile]]. Cancellation token is notified, an internal state is cleaned up.

loadAndDecode(client)

Start loading and/or proceed through the various states of loading of this tile.

waitSettled()

Return the current state in form of a promise. Caller can then wait for the promise to be resolved.