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

SeaFeaturetype

One named place: an ocean, a sea, a gulf, a bay or a continent, with the point its name is set at.

Import it

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

Definition

interface SeaFeature {
    id: string;
    kind: "ocean" | "continent" | "sea" | "gulf" | "bay";
    lon: number;
    lat: number;
    name: {
        en: string;
        ja: string;
    };
}

Members

NameTypeDescription
idstring
kind"ocean" | "continent" | "sea" | "gulf" | "bay"
lonnumber
latnumber
name{ en: string; ja: string; }

Examples

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

const pacific: SeaFeature = { id: "pacific-ocean", kind: "ocean", lon: -145.5, lat: -8, name: { en: "Pacific Ocean", ja: "太平洋" } };
console.log(pacific.name.en);
Pacific Ocean

What it prints (run when this page was built)

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