TileId型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One tile of the map pyramid: a level, a column counted east from longitude -180 and a row counted south from latitude 90.
インポート
import type { TileId } from "@johnmorrisdotca/chikyu-earth/realistic";
定義
interface TileId {
level: number;
col: number;
row: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
level | number | |
col | number | |
row | number |
例
import type { TileId } from "@johnmorrisdotca/chikyu-earth/realistic";
const tile: TileId = { level: 4, col: 17, row: 5 };
console.log(tile);{ level: 4, col: 17, row: 5 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。