gridKeysfunction
The keys of the tiles that cover a place at a detail. The longitude may pass 180. A place with no area gives none.
Import it
import { gridKeys } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function gridKeys(grid: MapGrid, place: MapPlace, detail: number, prefix?: string): string[]
Parameters
| Name | Type | Description |
|---|---|---|
grid | MapGrid | The grid. |
place | MapPlace | The part of the map, in degrees. |
detail | number | The pixels across a full turn wanted. |
prefix (optional) | string | Put before each key. |
Returns
string[]
The keys, row by row.
Examples
import { gibsGrid, gridKeys } from "@johnmorrisdotca/chikyu-earth/door";
console.log(gridKeys(gibsGrid("250m"), { lonMin: 170, lonMax: 190, latMin: -5, latMax: 5 }, 5120));[ '3/9/2', '3/0/2' ]What it prints (run when this page was built)