Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The data door: hand the package your own maps of the Earth or orbit data as a source with its own licence and credit, and see whose data is on the screen

GibsTilesOptionstype

What gibsTiles takes. time is the moment the Earth is showing. The day requested is the day before that, unless date says otherwise.

Import it

import type { GibsTilesOptions } from "@johnmorrisdotca/chikyu-earth/door";

Definition

interface GibsTilesOptions extends EarthTilesOptions {
    time: () => Date;
    layer?: string;
    date?: string;
    changed?: () => void;
    slowMs?: number;
}

Members

NameTypeDescription
time() => Date

The moment the view is showing. The default day is the UTC day before this.

layer (optional)string | undefined

A layer id (see GIBS_LAYERS). Left out, the MODIS Terra daily true-colour layer.

date (optional)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 (optional)(() => void) | undefined

Called when the default rule has found its day, so the view draws again and asks for the tiles.

slowMs (optional)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 (optional)((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 (optional)((blob: Blob) => Promise<BitmapLike>) | undefined

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

Examples

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.