リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
GibsTilesOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What gibsTiles takes. time is the moment the Earth is showing. The day requested is the day before that, unless date says otherwise.
インポート
import type { GibsTilesOptions } from "@johnmorrisdotca/chikyu-earth/door";
定義
interface GibsTilesOptions extends EarthTilesOptions {
time: () => Date;
layer?: string;
date?: string;
changed?: () => void;
slowMs?: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
time | () => Date | The moment the view is showing. The default day is the UTC day before this. |
layer (省略可) | string | undefined | A layer id (see |
date (省略可) | string | undefined |
|
changed (省略可) | (() => void) | undefined | Called when the default rule has found its day, so the view draws again and asks for the tiles. |
slowMs (省略可) | number | undefined | How many milliseconds a tile is given to arrive ( |
fetch (省略可) | ((url: string, init?: RequestInit) => Promise<Response>) | undefined | The |
decode (省略可) | ((blob: Blob) => Promise<BitmapLike>) | undefined | Makes a picture of a tile's bytes: |
例
import type { GibsTilesOptions } from "@johnmorrisdotca/chikyu-earth/door";
const options: GibsTilesOptions = { time: () => new Date("2026-06-21T12:00:00Z") };
console.log(typeof options.time);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。