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

ProjectionViewtype

What d3-geo's orthographic projection is given for a view: its rotation, scale and translation.

Import it

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

Definition

interface ProjectionView {
    rotation: Rotation;
    scale: number;
    translate: [
        number,
        number
    ];
}

Members

NameTypeDescription
rotationRotation
scalenumber
translate[number, number]

Examples

import { projectionView, type ProjectionView } from "@johnmorrisdotca/chikyu-earth";

const view: ProjectionView = projectionView({ lon: 0, lat: 0 }, 400);
console.log(view.scale, view.translate);
199 [ 200, 200 ]

What it prints (run when this page was built)

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