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

MapGridLeveltype

One level of a source's own grid. width is the pixels across a full turn of longitude, which is what a view compares with the screen. west and north are the outer corner of column 0, row 0, in degrees. tileLon and tileLat are the degrees one tile covers, which may run past the Earth.

Import it

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

Definition

interface MapGridLevel {
    level: number;
    width: number;
    columns: number;
    rows: number;
    west: number;
    north: number;
    tileLon: number;
    tileLat: number;
}

Members

NameTypeDescription
levelnumber
widthnumber
columnsnumber
rowsnumber
westnumber
northnumber
tileLonnumber
tileLatnumber

Examples

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

const level: MapGridLevel = { level: 3, width: 5120, columns: 10, rows: 5, west: -180, north: 90, tileLon: 36, tileLat: 36 };
console.log(level.columns);
10

What it prints (run when this page was built)

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