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

ImageTiletype

A map tile: its size in pixels and its picture. A map source's detail is the pixels across the whole circumference (not a level number, because the packages number their pyramids differently), and each source maps a width to its own nearest level.

Import it

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

Definition

interface ImageTile {
    width: number;
    height: number;
    image: BitmapLike;
}

Members

NameTypeDescription
widthnumber
heightnumber
imageBitmapLike

Examples

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

const tile: ImageTile = { width: 512, height: 256, image: await createImageBitmap(blob) };

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