DEFAULT_LEVELSconstant
The levels a source has when it does not say: levels 3 and 4 (8192 and 16384 pixels across), the two the package's cutter makes beyond its own 4096 pixel picture.
Import it
import { DEFAULT_LEVELS } from "@johnmorrisdotca/chikyu-earth/door";
Definition
const DEFAULT_LEVELS: TileLayer = Object.freeze({ tileSize: 512, levels: Object.freeze([3, 4].map((level) => ({ level, width: 1024 * 2 ** level }))) as TileLayer["levels"] })
Examples
import { DEFAULT_LEVELS } from "@johnmorrisdotca/chikyu-earth/door";
console.log(DEFAULT_LEVELS.levels.map((level) => level.width));[ 8192, 16384 ]What it prints (run when this page was built)