docsby gkjohnson
On this page

Methods

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

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

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

		// Canvas resolution for generated tile textures.
		resolution: number = 512,

		// Per-feature style callback. If not provided then no content will draw.
		getStyle?: ( layerName: string, properties: Object | null ) => VectorTileStyle | null
	}
)

Inherited