リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
gridKeys関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The keys of the tiles that cover a place at a detail. The longitude may pass 180. A place with no area gives none.
インポート
import { gridKeys } from "@johnmorrisdotca/chikyu-earth/door";
定義
function gridKeys(grid: MapGrid, place: MapPlace, detail: number, prefix?: string): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
grid | MapGrid | The grid. |
place | MapPlace | The part of the map, in degrees. |
detail | number | The pixels across a full turn wanted. |
prefix (省略可) | string | Put before each key. |
戻り値
string[]
The keys, row by row.
例
import { gibsGrid, gridKeys } from "@johnmorrisdotca/chikyu-earth/door";
console.log(gridKeys(gibsGrid("250m"), { lonMin: 170, lonMax: 190, latMin: -5, latMax: 5 }, 5120));[ '3/9/2', '3/0/2' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。