リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
MapGridLevel型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One level of a source's own grid. width is the pixels across a full turn of longitude, which is what a view compares with the screen. west and north are the outer corner of column 0, row 0, in degrees.
tileLon and tileLat are the degrees one tile covers, which may run past the Earth.
インポート
import type { MapGridLevel } from "@johnmorrisdotca/chikyu-earth/door";
定義
interface MapGridLevel {
level: number;
width: number;
columns: number;
rows: number;
west: number;
north: number;
tileLon: number;
tileLat: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
level | number | |
width | number | |
columns | number | |
rows | number | |
west | number | |
north | number | |
tileLon | number | |
tileLat | number |
例
import type { MapGridLevel } from "@johnmorrisdotca/chikyu-earth/door";
const level: MapGridLevel = { level: 3, width: 5120, columns: 10, rows: 5, west: -180, north: 90, tileLon: 36, tileLat: 36 };
console.log(level.columns);10出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。