Tile interface

發生來源資料事件時,地圖所傳回的 Tile 物件。

屬性

id

圖格的識別碼。

size

磚的大小。

state

圖格的狀態。

'「loading」':磚資料正在載入中。

'「loaded」':已載入磚資料。

'「reloading」':已載入並更新磚資料。

'「unloaded」':資料已刪除。

'「errored」':因為發生錯誤,所以未載入磚資料。

'「expired」':磚資料先前已載入,但已根據其 HTTP 標頭過期,且正在重新整理。

屬性詳細資料

id

圖格的識別碼。

id: TileId

屬性值

size

磚的大小。

size: number

屬性值

number

state

圖格的狀態。

'「loading」':磚資料正在載入中。

'「loaded」':已載入磚資料。

'「reloading」':已載入並更新磚資料。

'「unloaded」':資料已刪除。

'「errored」':因為發生錯誤,所以未載入磚資料。

'「expired」':磚資料先前已載入,但已根據其 HTTP 標頭過期,且正在重新整理。

state: "loading" | "loaded" | "reloading" | "unloaded" | "errored" | "expired"

屬性值

"loading" | "loaded" | "reloading" | "unloaded" | "errored" | "expired"