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

gridSpanfunction

The longitude and latitude a tile covers, before it is cut to the Earth. The south and east edges may fall past the Earth on a coarse level.

Import it

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

Definition

function gridSpan(level: MapGridLevel, col: number, row: number): { lonMin: number; lonMax: number; latMin: number; latMax: number; }

Parameters

NameTypeDescription
levelMapGridLevel

The level the tile is on.

colnumber

The column, from the west.

rownumber

The row, from the north.

Returns

{ lonMin: number; lonMax: number; latMin: number; latMax: number; }

The tile's bounds in degrees.

Examples

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

console.log(gridSpan(gibsGrid("250m").levels[0]!, 0, 0).latMin < -90);
true

What it prints (run when this page was built)

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