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 Sun, Moon and planets: pure parts

readBeamfunction

What the beam's attributes say. beam is off when it is missing, off or false; a bare attribute, selected or on switches it on for the chosen satellite. The strength is from 0 to 1 (0.6 when left out), the elevation from 0 to 80 degrees (25), the cells from 0 to 91 (none) and the cell size in kilometres (0 for the fit).

Import it

import { readBeam } from "@johnmorrisdotca/chikyu-earth/space";

Definition

function readBeam(get: (name: string) => string | null): BeamOptions

Parameters

NameTypeDescription
get(name: string) => string | null

Reads an attribute by name, null when it is missing.

Returns

BeamOptions

The options.

Examples

import { readBeam } from "@johnmorrisdotca/chikyu-earth/space";

const read = readBeam((name) => ({ beam: "selected", "beam-cells": "19" })[name] ?? null);
console.log(read.on, read.cells);
true 19

What it prints (run when this page was built)

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