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

readBordersfunction

A borders attribute: absent draws none; a bare attribute draws both sets; otherwise the words in it, countries and regions, each switch one set on.

Import it

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

Definition

function readBorders(value: string | null): BorderSets

Parameters

NameTypeDescription
valuestring | null

The attribute's text, or null when it is not there.

Returns

BorderSets

Which sets are drawn.

Examples

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

console.log(readBorders(null), readBorders(""), readBorders("countries"));
{ countries: false, regions: false } { countries: true, regions: true } { countries: true, regions: false }

What it prints (run when this page was built)

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