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

coveringTilefunction

The tile of a coarser or the same level that holds a tile.

Import it

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

Definition

function coveringTile(tile: TileId, level: number): TileId

Parameters

NameTypeDescription
tileTileId

A tile.

levelnumber

A level no finer than the tile's.

Returns

TileId

The tile at level that covers it.

Examples

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

console.log(coveringTile({ level: 4, col: 17, row: 5 }, 3));
{ level: 3, col: 8, row: 2 }

What it prints (run when this page was built)

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