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

TileLayertype

What a layer of a tile set holds, from its manifest: the pyramid's levels, each as wide as it is, and the tile size.

Import it

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

Definition

interface TileLayer {
    tileSize: number;
    levels: {
        level: number;
        width: number;
    }[];
}

Members

NameTypeDescription
tileSizenumber
levels{ level: number; width: number; }[]

Examples

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

const day: TileLayer = { tileSize: 512, levels: [{ level: 3, width: 8192 }, { level: 4, width: 16384 }] };
console.log(day.levels.length);
2

What it prints (run when this page was built)

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