docsby gkjohnson
Wrapping XYZ map tiles around the globe
Data courtesy of © OpenStreetMap contributors
On this page

Methods

new XYZTilesOverlay(
	options?: {
		// URL template with `{x}`, `{y}`, `{z}` placeholders.
		url?: string,

		// Number of zoom levels.
		levels: number = 20,

		// Tile pixel size.
		tileDimension: number = 256,

		// Projection scheme identifier.
		projection: string = 'EPSG:3857',

		// Overlay opacity (0–1).
		opacity: number = 1,

		// Tint color.
		color: number | Color = 0xffffff,

		// Planar projection frame. If null, cartographic projection is used.
		frame: Matrix4 = null,

		// URL rewriting callback.
		preprocessURL: function = null,

		// Use alpha channel as a surface mask.
		alphaMask: boolean = false,

		// Invert the alpha channel.
		alphaInvert: boolean = false
	}
)

Inherited