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
| Name | Type | Description |
|---|---|---|
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 |
date (optional) | string | undefined |
|
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 ( |
fetch (optional) | ((url: string, init?: RequestInit) => Promise<Response>) | undefined | The |
decode (optional) | ((blob: Blob) => Promise<BitmapLike>) | undefined | Makes a picture of a tile's bytes: |
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);functionWhat it prints (run when this page was built)