リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
gridPastExtent関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
True when the tile runs past the Earth's extent (a coarse level's tile is wider than the Earth).
インポート
import { gridPastExtent } from "@johnmorrisdotca/chikyu-earth/door";
定義
function gridPastExtent(level: MapGridLevel, col: number, row: number): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
level | MapGridLevel | The level. |
col | number | The column. |
row | number | The row. |
戻り値
boolean
Whether any edge falls outside -180 to 180 or -90 to 90.
例
import { gibsGrid, gridPastExtent } from "@johnmorrisdotca/chikyu-earth/door";
const coarse = gibsGrid("250m").levels[0]!;
console.log(gridPastExtent(coarse, 0, 0));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。