リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
DEFAULT_LEVELS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { DEFAULT_LEVELS } from "@johnmorrisdotca/chikyu-earth/door";
定義
const DEFAULT_LEVELS: TileLayer = Object.freeze({ tileSize: 512, levels: Object.freeze([3, 4].map((level) => ({ level, width: 1024 * 2 ** level }))) as TileLayer["levels"] })
例
import { DEFAULT_LEVELS } from "@johnmorrisdotca/chikyu-earth/door";
console.log(DEFAULT_LEVELS.levels.map((level) => level.width));[ 8192, 16384 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。