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 <chikyu-space> element

RideOptionstype

How a ride along is done: view from (the default) puts the camera at the body looking at the Earth, follow keeps it a fixed distance from the body looking at it (distanceKm, 3000 by default, for a satellite; a planet or the Moon is kept at the distance the zoom says); look down (the default) or horizon is where a camera at the body points; smooth (the default) glides from the old camera to the new one in about a second and a bit, and jumps instead for a reader who asked for reduced motion.

Import it

import type { RideOptions } from "@johnmorrisdotca/chikyu-earth/space/element";

Definition

interface RideOptions {
    view?: "from" | "follow";
    look?: RideLook;
    distanceKm?: number;
    smooth?: boolean;
}

Members

NameTypeDescription
view (optional)"from" | "follow" | undefined
look (optional)RideLook | undefined
distanceKm (optional)number | undefined
smooth (optional)boolean | undefined

Examples

import type { RideOptions } from "@johnmorrisdotca/chikyu-earth/space/element";

const options: RideOptions = { view: "from", look: "horizon" };
console.log(options.look);

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