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

gridPastExtentfunction

True when the tile runs past the Earth's extent (a coarse level's tile is wider than the Earth).

Import it

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

Definition

function gridPastExtent(level: MapGridLevel, col: number, row: number): boolean

Parameters

NameTypeDescription
levelMapGridLevel

The level.

colnumber

The column.

rownumber

The row.

Returns

boolean

Whether any edge falls outside -180 to 180 or -90 to 90.

Examples

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

const coarse = gibsGrid("250m").levels[0]!;
console.log(gridPastExtent(coarse, 0, 0));
true

What it prints (run when this page was built)

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