gridSpanfunction
The longitude and latitude a tile covers, before it is cut to the Earth. The south and east edges may fall past the Earth on a coarse level.
Import it
import { gridSpan } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function gridSpan(level: MapGridLevel, col: number, row: number): { lonMin: number; lonMax: number; latMin: number; latMax: number; }
Parameters
| Name | Type | Description |
|---|---|---|
level | MapGridLevel | The level the tile is on. |
col | number | The column, from the west. |
row | number | The row, from the north. |
Returns
{ lonMin: number; lonMax: number; latMin: number; latMax: number; }
The tile's bounds in degrees.
Examples
import { gibsGrid, gridSpan } from "@johnmorrisdotca/chikyu-earth/door";
console.log(gridSpan(gibsGrid("250m").levels[0]!, 0, 0).latMin < -90);trueWhat it prints (run when this page was built)