Reference · The realistic Earth's pure parts
TileLayertype
What a layer of a tile set holds, from its manifest: the pyramid's levels, each as wide as it is, and the tile size.
Import it
import type { TileLayer } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
interface TileLayer {
tileSize: number;
levels: {
level: number;
width: number;
}[];
}
Members
| Name | Type | Description |
|---|---|---|
tileSize | number | |
levels | { level: number; width: number; }[] |
Examples
import type { TileLayer } from "@johnmorrisdotca/chikyu-earth/realistic";
const day: TileLayer = { tileSize: 512, levels: [{ level: 3, width: 8192 }, { level: 4, width: 16384 }] };
console.log(day.levels.length);2What it prints (run when this page was built)