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

MarkerIcontype

The shapes a marker can be drawn as: dot, ring, square or diamond.

Import it

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

Definition

type MarkerIcon = "dot" | "ring" | "square" | "diamond";

Examples

import type { MarkerIcon, MarkerInput } from "@johnmorrisdotca/chikyu-earth/markers";

const icon: MarkerIcon = "diamond";
const stadium: MarkerInput = { id: "camp-nou", lon: 2.12, lat: 41.38, icon, group: "Stadiums" };
console.log(stadium.icon);
diamond

What it prints (run when this page was built)

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