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-earth-realistic> element

setThreeLoaderfunction

Where three.js comes from, if a page wants to hand it over itself (before the first element connects). A page that hands over a module re-exporting only the parts the Earth and the space view use ships a few hundred kilobytes of three.js instead of all of it.

Import it

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

Also exported from: @johnmorrisdotca/chikyu-earth/space/element

Definition

function setThreeLoader(load: () => Promise<Three>): void

Parameters

NameTypeDescription
load() => Promise<Three>

Returns the parts of three.js the Earth and the space view use, as a promise.

Examples

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

setThreeLoader(() => import("three"));

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