docsby gkjohnson
On this page

Properties

getKind: ( layer: string, properties: Object ) => string | null

fallback: string | null

Methods

new MVTIconGlyphs(
	options?: {
		// Chooses the atlas key to draw for each point.
		getKind?: ( layer: string, properties: Object ) => string | null,

		// Atlas key drawn when `getKind`'s result is missing from the atlas; null draws nothing.
		fallback: string | null = null,

		// Glyph size in pixels.
		size: number = 18,

		// Atlas slot size in pixels (defaults to `18 * devicePixelRatio`).
		glyphSize?: number,

		// Initial atlas slot capacity.
		slotCount: number = 64
	}
)

Inherited