docsby gkjohnson
Wrapping WMS map tiles around the globe
Data courtesy of USGS The National Map
On this page

Methods

new WMSTilesOverlay(
	options?: {
		// WMS base URL.
		url?: string,

		// WMS layer name.
		layer?: string,

		// Coordinate reference system, e.g. `'EPSG:4326'`.
		crs?: string,

		// Image MIME type, e.g. `'image/png'`.
		format?: string,

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

		// WMS styles parameter.
		styles?: string,

		// WMS version string.
		version: string = '1.3.0',

		// Whether to request a transparent image.
		transparent: boolean = false,

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

		// Content bounding box in radians `[west, south, east, north]`. If null, uses full projection bounds.
		contentBoundingBox: Array<number> | null = null,

		// 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