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 globe as an SVG string

GeoPointtype

A point on the globe, in degrees: lon from -180 to 180 (east is positive), lat from -90 to 90 (north is positive).

Import it

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

Definition

interface GeoPoint {
    lon: number;
    lat: number;
}

Members

NameTypeDescription
lonnumber
latnumber

Examples

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

const tokyo: GeoPoint = { lon: 139.7, lat: 35.7 };
console.log(tokyo);
{ lon: 139.7, lat: 35.7 }

What it prints (run when this page was built)

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