ImageTiletype
A map tile: its size in pixels and its picture. A map source's detail is the pixels across the whole circumference (not a level number, because the packages number their pyramids differently), and each source maps a width to its own nearest level.
Import it
import type { ImageTile } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface ImageTile {
width: number;
height: number;
image: BitmapLike;
}
Members
| Name | Type | Description |
|---|---|---|
width | number | |
height | number | |
image | BitmapLike |
Examples
import type { ImageTile } from "./data-door.ts";
const tile: ImageTile = { width: 512, height: 256, image: await createImageBitmap(blob) };