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 realistic Earth's pure parts

gridLinesfunction

Makes the grid: meridians and parallels every 15 degrees (the parallels from 75 south to 75 north, the meridians to the poles), the equator brightest, the tropics and polar circles bright, the prime meridian in a warm colour. Each line is cut into pieces of at most step degrees so it keeps to the sphere.

Import it

import { gridLines } from "@johnmorrisdotca/chikyu-earth/realistic";

Definition

function gridLines(step?: number): GridLines

Parameters

NameTypeDescription
step (optional)number

The longest piece, in degrees (3 when left out).

Returns

GridLines

The segments and their colours.

Examples

import { gridLines } from "@johnmorrisdotca/chikyu-earth/realistic";

const grid = gridLines();
console.log(grid.points / 2, grid.coarse / 2);
3240 1800

What it prints (run when this page was built)

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