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 · Markers on the globe

Posetype

The view: the point of the Earth at the middle of the disc, the disc's radius and its centre, in CSS pixels.

Import it

import type { Pose } from "@johnmorrisdotca/chikyu-earth/markers";

Definition

interface Pose {
    lon: number;
    lat: number;
    radius: number;
    cx: number;
    cy: number;
}

Members

NameTypeDescription
lonnumber
latnumber
radiusnumber
cxnumber
cynumber

Examples

import { project, type Pose } from "@johnmorrisdotca/chikyu-earth/markers";

const pose: Pose = { lon: 10, lat: 20, radius: 100, cx: 150, cy: 150 };
console.log(project(10, 20, pose));
{ x: 150, y: 150, z: 1 }

What it prints (run when this page was built)

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