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

gridKeysfunction

The keys of the tiles that cover a place at a detail. The longitude may pass 180. A place with no area gives none.

Import it

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

Definition

function gridKeys(grid: MapGrid, place: MapPlace, detail: number, prefix?: string): string[]

Parameters

NameTypeDescription
gridMapGrid

The grid.

placeMapPlace

The part of the map, in degrees.

detailnumber

The pixels across a full turn wanted.

prefix (optional)string

Put before each key.

Returns

string[]

The keys, row by row.

Examples

import { gibsGrid, gridKeys } from "@johnmorrisdotca/chikyu-earth/door";

console.log(gridKeys(gibsGrid("250m"), { lonMin: 170, lonMax: 190, latMin: -5, latMax: 5 }, 5120));
[ '3/9/2', '3/0/2' ]

What it prints (run when this page was built)

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