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 realistic Earth's pure parts

VisibleTiletype

A tile that is in view: where, how far its middle is from the middle of the box (CSS pixels, for loading the middle first) and how dark its darkest sampled point is (ndl, the cosine of the angle to the Sun, only when a Sun was given).

Import it

import type { VisibleTile } from "@johnmorrisdotca/chikyu-earth/realistic";

Definition

interface VisibleTile extends TileId {
    d: number;
    ndl: number;
}

Members

NameTypeDescription
dnumber
ndlnumber
levelnumber
colnumber
rownumber

Examples

import type { VisibleTile } from "@johnmorrisdotca/chikyu-earth/realistic";

const tile: VisibleTile = { level: 3, col: 0, row: 0, d: 120, ndl: -0.4 };
console.log(tile.d);
120

What it prints (run when this page was built)

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