本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)

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 GIBS_LAYERS). Left out, the MODIS Terra daily true-colour layer.

date (省略可)string | undefined

latest (the default): the most recent day with imagery, looked for from the day before time back, one tile under the middle of the view a day. previous-day (that day alone), shown (the UTC day of time), or one day yyyy-mm-dd.

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 (GIBS_SLOW_MS, 2000, when left out). A page on a slow link can give it longer.

fetch (省略可)((url: string, init?: RequestInit) => Promise<Response>) | undefined

The fetch to use: the global one where left out. It is called as fetch(address, { mode: "cors", signal }).

decode (省略可)((blob: Blob) => Promise<BitmapLike>) | undefined

Makes a picture of a tile's bytes: createImageBitmap where left out.

例

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.51.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。