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 Earth-orbit catalogue: orbit class, object kind, colours, fleets and the packed file format (no data)

gzipBytesfunction

Gzip bytes, with the web's own CompressionStream: the form a site hosts a packed file in.

Import it

import { gzipBytes } from "@johnmorrisdotca/chikyu-earth/catalogue";

Definition

function gzipBytes(bytes: Uint8Array): Promise<Uint8Array>

Parameters

NameTypeDescription
bytesUint8Array<ArrayBufferLike>

What packCatalogue made.

Returns

Promise<Uint8Array<ArrayBufferLike>>

The gzipped bytes.

Examples

import { gzipBytes } from "@johnmorrisdotca/chikyu-earth/catalogue";

const small = await gzipBytes(new Uint8Array(10_000));
console.log(small.length < 100, small[0], small[1]);
true 31 139

What it prints (run when this page was built)

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