Reference · The realistic Earth's pure parts
tileRectfunction
Where a tile's edges are, in longitude and latitude in radians: west, north, east and south.
Import it
import { tileRect } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function tileRect(tile: TileId): [number, number, number, number]
Parameters
| Name | Type | Description |
|---|---|---|
tile | TileId | A tile. |
Returns
[number, number, number, number]
[west, north, east, south].
Examples
import { tileRect } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(tileRect({ level: 3, col: 0, row: 0 }));[
-3.141592653589793,
1.5707963267948966,
-2.748893571891069,
1.1780972450961724
]What it prints (run when this page was built)