gridKeyfunction
The key of the tile that holds a point, [<prefix>]level/column/row, or undefined when no tile holds it.
Import it
import { gridKey } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function gridKey(grid: MapGrid, level: number, lon: number, lat: number, prefix?: string): string | undefined
Parameters
| Name | Type | Description |
|---|---|---|
grid | MapGrid | The grid. |
level | number | The level number. |
lon | number | The longitude in degrees. |
lat | number | The latitude in degrees. |
prefix (optional) | string | Put before the key. |
Returns
string | undefined
The key, or undefined.
Examples
import { gibsGrid, gridKey } from "@johnmorrisdotca/chikyu-earth/door";
console.log(gridKey(gibsGrid("250m"), 3, 0, 0));3/5/2What it prints (run when this page was built)