MapGridtype
The grid a map source declares when it is not the package's pyramid: the tile size, the Earth's extent in degrees, and one entry per level.
Import it
import type { MapGrid } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface MapGrid {
tileSize: number;
extent: {
west: number;
south: number;
east: number;
north: number;
};
levels: readonly MapGridLevel[];
}
Members
| Name | Type | Description |
|---|---|---|
tileSize | number | |
extent | { west: number; south: number; east: number; north: number; } | |
levels | readonly MapGridLevel[] |
Examples
import type { MapGrid } from "@johnmorrisdotca/chikyu-earth/door";
const grid: MapGrid = { tileSize: 512, extent: { west: -180, south: -90, east: 180, north: 90 }, levels: [] };
console.log(grid.tileSize);512What it prints (run when this page was built)