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

CountrySpotstype

The countries ready to be named: for each, its code and names, and points spread evenly over its land (longitude, latitude, the area each stands for in square degrees of the sphere, and which of the country's polygons it is in), with the cap of the sphere they all lie in.

Import it

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

Definition

interface CountrySpots {
    countries: {
        code: string;
        name: {
            en: string;
            ja?: string;
        };
        points: Float32Array;
        cap: {
            lon: number;
            lat: number;
            reach: number;
        };
    }[];
}

Members

NameTypeDescription
countries{ code: string; name: { en: string; ja?: string; }; points: Float32Array; cap: { lon: number; lat: number; reach: number; }; }[]

Examples

import { countrySpots, type CountrySpots } from "@johnmorrisdotca/chikyu-earth/realistic";

const spots: CountrySpots = countrySpots({ features: [] });
console.log(spots.countries.length);
0

What it prints (run when this page was built)

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