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 place under a point: country, sea, continent and the nearest city

PlaceOptionstype

Options for placeOf and alongTrack. Without cities, nearestCity is null. maxKm defaults to 100 and is at most 20,000.

Import it

import type { PlaceOptions } from "@johnmorrisdotca/chikyu-earth/place";

Definition

interface PlaceOptions {
    cities?: PlaceCities;
    towns?: (countryCode: string) => readonly HereTown[];
    maxKm?: number;
}

Members

NameTypeDescription
cities (optional)PlaceCities | undefined
towns (optional)((countryCode: string) => readonly HereTown[]) | undefined
maxKm (optional)number | undefined

Examples

import type { PlaceOptions } from "@johnmorrisdotca/chikyu-earth/place";

const options: PlaceOptions = { maxKm: 40 };
console.log(options.maxKm);
40

What it prints (run when this page was built)

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