tilePlacefunction
The place a tile covers, in degrees: what a view asks a source about to get that tile's key.
Import it
import { tilePlace } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function tilePlace(tile: TileId): MapPlace
Parameters
| Name | Type | Description |
|---|---|---|
tile | TileId | A tile of the pyramid. |
Returns
MapPlace
The tile's longitude and latitude bounds.
Examples
import { tilePlace } from "@johnmorrisdotca/chikyu-earth/door";
console.log(tilePlace({ level: 3, col: 0, row: 0 }));{ lonMin: -180, lonMax: -157.5, latMax: 90, latMin: 67.5 }What it prints (run when this page was built)