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 realistic Earth's pure parts

tileRectfunction

Where a tile's edges are, in longitude and latitude in radians: west, north, east and south.

Import it

import { tileRect } from "@johnmorrisdotca/chikyu-earth/realistic";

Definition

function tileRect(tile: TileId): [number, number, number, number]

Parameters

NameTypeDescription
tileTileId

A tile.

Returns

[number, number, number, number]

[west, north, east, south].

Examples

import { tileRect } from "@johnmorrisdotca/chikyu-earth/realistic";

console.log(tileRect({ level: 3, col: 0, row: 0 }));
[
  -3.141592653589793,
  1.5707963267948966,
  -2.748893571891069,
  1.1780972450961724
]

What it prints (run when this page was built)

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