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

TileStatstype

What a tile store has done.

Import it

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

Definition

interface TileStats {
    held: number;
    heldBytes: number;
    inFlight: number;
    queued: number;
    requested: number;
    failed: number;
    refused: number;
    evicted: number;
}

Members

NameTypeDescription
heldnumber

Tiles held, and their bytes: heldBytes is never over the budget.

heldBytesnumber
inFlightnumber

Loads running now, and loads waiting for a free place.

queuednumber
requestednumber

Loads started since the store was made: the number a test reads to prove nothing is sent at rest.

failednumber

Tiles that failed to load, came back empty, or reported a size that is not a number. They are never held or drawn.

refusednumber

Tiles that arrived and did not fit, because every tile held was needed by the view. They are not held; the view draws what it holds.

evictednumber

Tiles let go to make room.

Examples

import type { TileStats } from "./data-door.ts";

const full = (stats: TileStats): boolean => stats.refused > 0;

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