gridPastExtentfunction
True when the tile runs past the Earth's extent (a coarse level's tile is wider than the Earth).
Import it
import { gridPastExtent } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function gridPastExtent(level: MapGridLevel, col: number, row: number): boolean
Parameters
| Name | Type | Description |
|---|---|---|
level | MapGridLevel | The level. |
col | number | The column. |
row | number | The row. |
Returns
boolean
Whether any edge falls outside -180 to 180 or -90 to 90.
Examples
import { gibsGrid, gridPastExtent } from "@johnmorrisdotca/chikyu-earth/door";
const coarse = gibsGrid("250m").levels[0]!;
console.log(gridPastExtent(coarse, 0, 0));trueWhat it prints (run when this page was built)