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
| Name | Type | Description |
|---|---|---|
tile | TileId | A tile. |
level | number | 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)