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

MapGridtype

The grid a map source declares when it is not the package's pyramid: the tile size, the Earth's extent in degrees, and one entry per level.

Import it

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

Definition

interface MapGrid {
    tileSize: number;
    extent: {
        west: number;
        south: number;
        east: number;
        north: number;
    };
    levels: readonly MapGridLevel[];
}

Members

NameTypeDescription
tileSizenumber
extent{ west: number; south: number; east: number; north: number; }
levelsreadonly MapGridLevel[]

Examples

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

const grid: MapGrid = { tileSize: 512, extent: { west: -180, south: -90, east: 180, north: 90 }, levels: [] };
console.log(grid.tileSize);
512

What it prints (run when this page was built)

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