リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
tileKeyParts関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The level, column and row a tile key ends in, or undefined for a key that does not end in three numbers.
インポート
import { tileKeyParts } from "@johnmorrisdotca/chikyu-earth/door";
定義
function tileKeyParts(key: string): TileId | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
key | string | The tile's key. |
戻り値
TileId | undefined
Where the tile is in the pyramid, or undefined for a key that does not end in three numbers.
例
import { tileKeyParts } from "@johnmorrisdotca/chikyu-earth/door";
console.log(tileKeyParts("day/3/12/5"));{ level: 3, col: 12, row: 5 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。