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

DEFAULT_LEVELSconstant

The levels a source has when it does not say: levels 3 and 4 (8192 and 16384 pixels across), the two the package's cutter makes beyond its own 4096 pixel picture.

Import it

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

Definition

const DEFAULT_LEVELS: TileLayer = Object.freeze({ tileSize: 512, levels: Object.freeze([3, 4].map((level) => ({ level, width: 1024 * 2 ** level }))) as TileLayer["levels"] })

Examples

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

console.log(DEFAULT_LEVELS.levels.map((level) => level.width));
[ 8192, 16384 ]

What it prints (run when this page was built)

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