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

seaNamesForfunction

The names a view of this size may show: oceans and continents while the Earth is small, and seas, gulfs and bays once it is at least SEA_RADIUS pixels in radius.

Import it

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

Definition

function seaNamesFor(radius: number): readonly SeaFeature[]

Parameters

NameTypeDescription
radiusnumber

The Earth's radius on the screen, in CSS pixels.

Returns

readonly SeaFeature[]

The features, oceans and continents first.

Examples

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

console.log(seaNamesFor(120).some((one) => one.id === "pacific-ocean"));
console.log(seaNamesFor(120).some((one) => one.id === "sea-of-japan"));
console.log(seaNamesFor(400).some((one) => one.id === "mediterranean-sea"));
true
false
true

What it prints (run when this page was built)

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