リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
EarthMapPlace型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The place a map source is asked about: the family's MapPlace in degrees (longitude from lonMin to lonMax, which may pass 180 and is at most a whole turn, latitude from latMin to latMax), and the layer it is for.
インポート
import type { EarthMapPlace } from "@johnmorrisdotca/chikyu-earth/door";
定義
type EarthMapPlace = MapPlace & {
layer?: string;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
lonMin | number | |
lonMax | number | |
latMin | number | |
latMax | number | |
layer (省略可) | string | undefined |
例
import type { EarthMapPlace } from "@johnmorrisdotca/chikyu-earth/door";
const place: EarthMapPlace = { lonMin: 170, lonMax: 190, latMin: -10, latMax: 10, layer: "day" };
console.log(place.layer);day出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。