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 data door: hand the package your own maps of the Earth or orbit data as a source with its own licence and credit, and see whose data is on the screen

BitmapLiketype

What a picture needs of its bitmap: an ImageBitmap fits. *

Import it

import type { BitmapLike } from "@johnmorrisdotca/chikyu-earth/door";

Definition

interface BitmapLike {
    readonly width: number;
    readonly height: number;
    close?(): void;
}

Members

NameTypeDescription
widthnumber
heightnumber
close (optional)(() => void) | undefined

Examples

import type { BitmapLike } from "./data-door.ts";

const size = (bitmap: BitmapLike): number => bitmap.width * bitmap.height;

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