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

PlaceLayouttype

The markers and names of a set of places in one picture.

Import it

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

Definition

interface PlaceLayout {
    shapes: PlaceShape[];
    labels: PlaceLabelSpot[];
}

Members

NameTypeDescription
shapesPlaceShape[]
labelsPlaceLabelSpot[]

Examples

import { layoutPlaces, orthoView, type PlaceLayout } from "@johnmorrisdotca/chikyu-earth/markers";

const layout: PlaceLayout = layoutPlaces([], orthoView({ lon: 0, lat: 0, radius: 200, cx: 210, cy: 210, width: 420, height: 420 }), "beam");
console.log(layout.shapes.length, layout.labels.length);
0 0

What it prints (run when this page was built)

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