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

tileKeyPartsfunction

The level, column and row a tile key ends in, or undefined for a key that does not end in three numbers.

Import it

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

Definition

function tileKeyParts(key: string): TileId | undefined

Parameters

NameTypeDescription
keystring

The tile's key.

Returns

TileId | undefined

Where the tile is in the pyramid, or undefined for a key that does not end in three numbers.

Examples

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

console.log(tileKeyParts("day/3/12/5"));
{ level: 3, col: 12, row: 5 }

What it prints (run when this page was built)

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