MapGridLeveltype
One level of a source's own grid. width is the pixels across a full turn of longitude, which is what a view compares with the screen. west and north are the outer corner of column 0, row 0, in degrees.
tileLon and tileLat are the degrees one tile covers, which may run past the Earth.
Import it
import type { MapGridLevel } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface MapGridLevel {
level: number;
width: number;
columns: number;
rows: number;
west: number;
north: number;
tileLon: number;
tileLat: number;
}
Members
| Name | Type | Description |
|---|---|---|
level | number | |
width | number | |
columns | number | |
rows | number | |
west | number | |
north | number | |
tileLon | number | |
tileLat | number |
Examples
import type { MapGridLevel } from "@johnmorrisdotca/chikyu-earth/door";
const level: MapGridLevel = { level: 3, width: 5120, columns: 10, rows: 5, west: -180, north: 90, tileLon: 36, tileLat: 36 };
console.log(level.columns);10What it prints (run when this page was built)