For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias StyleImageWebGLTarget

Where a StyleImageWebGLData.renderWithWebGL callback writes its pixels.

type StyleImageWebGLTarget = {
    gl: WebGL2RenderingContext;
    height: number;
    texture: WebGLTexture;
    width: number;
    x: number;
    y: number;
}
Index

Properties

Properties

height: number
texture: WebGLTexture

The icon atlas to write into. MapLibre does not bind it for you, so start with gl.bindTexture(gl.TEXTURE_2D, texture) or attach it to your own framebuffer.

width: number
x: number
y: number
Was this helpful?