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

GlobeViewtype

What a shared view controller tells the globe: its turn (yaw, degrees), tip (tilt, degrees), zoom (1 is Fit) and pan (panX and panY, CSS pixels).

Import it

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

Definition

interface GlobeView {
    yaw: number;
    tilt: number;
    zoom: number;
    panX: number;
    panY: number;
}

Members

NameTypeDescription
yawnumber
tiltnumber
zoomnumber
panXnumber
panYnumber

Examples

import { HOME_VIEW, type GlobeView } from "@johnmorrisdotca/chikyu-earth";

const turned: GlobeView = { ...HOME_VIEW, yaw: 30 };
console.log(turned);
{ yaw: 30, tilt: 0, zoom: 1, panX: 0, panY: 0 }

What it prints (run when this page was built)

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