Skip to main content

TileSource

Raster tiles drawn as an overlay, such as WMTS imagery or a WMS map.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { TileSource } from "@mapcairn/core";

interface TileSource

Properties​

bounds​

readonly bounds?: readonly [number, number, number, number];

The box the service has real tiles for, as [west, south, east, north] in degrees, west less than east. The engine asks for no tile that lies wholly outside it; a tile that straddles an edge is still drawn whole. Set it when a provider fills the rest with blank or opaque filler: on a globe the engine stretches a tile at the edge of the world over the pole, so filler there becomes wedges meeting at the pole.

kind​

readonly kind: "tiles";

Tells a raster tile source from the other source kinds.

maxzoom​

readonly maxzoom: number;

The deepest tile level the service has; the engine scales beyond it.

tiles​

readonly tiles: string;

A URL template over control values. {z}, {x}, {y} and {bbox-epsg-3857} are left for the map engine to fill.

tileSize​

readonly tileSize: 256 | 512;

The tiles' size in pixels, 256 or 512.

Source: packages/core/src/layers/definition.ts:241