リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
gridOnEarth関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The part of a tile that lies on the Earth, or undefined when the tile misses the Earth entirely.
インポート
import { gridOnEarth } from "@johnmorrisdotca/chikyu-earth/door";
定義
function gridOnEarth(level: MapGridLevel, col: number, row: number, extent: MapGrid["extent"]): MapPlace | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
level | MapGridLevel | The level. |
col | number | The column. |
row | number | The row. |
extent | { west: number; south: number; east: number; north: number; } | The Earth's extent in degrees. |
戻り値
MapPlace | undefined
The overlap, or undefined.
例
import { gibsGrid, gridOnEarth } from "@johnmorrisdotca/chikyu-earth/door";
console.log(gridOnEarth(gibsGrid("250m").levels[3]!, 0, 0, { west: -180, south: -90, east: 180, north: 90 }));{ lonMin: -180, lonMax: -144, latMin: 54, latMax: 90 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。