リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
tilePlace関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The place a tile covers, in degrees: what a view asks a source about to get that tile's key.
インポート
import { tilePlace } from "@johnmorrisdotca/chikyu-earth/door";
定義
function tilePlace(tile: TileId): MapPlace
引数
| 名前 | 型 | 説明 |
|---|---|---|
tile | TileId | A tile of the pyramid. |
戻り値
MapPlace
The tile's longitude and latitude bounds.
例
import { tilePlace } from "@johnmorrisdotca/chikyu-earth/door";
console.log(tilePlace({ level: 3, col: 0, row: 0 }));{ lonMin: -180, lonMax: -157.5, latMax: 90, latMin: 67.5 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。