---
title: "StyleImageWebGLTarget | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias StyleImageWebGLTarget

Where a [StyleImageWebGLData.renderWithWebGL](https://docs.maptiler.com/sdk-js/api-reference/types/StyleImageWebGLData/#renderwithwebgl) callback writes its pixels.

type StyleImageWebGLTarget \= {  
    [gl](#gl): [WebGL2RenderingContext](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGL2RenderingContext/);  
    [height](#height): number;  
    [texture](#texture): [WebGLTexture](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLTexture/);  
    [width](#width): number;  
    [x](#x): number;  
    [y](#y): number;  
}

##### Index

### Properties

[gl](#gl) [height](#height) [texture](#texture) [width](#width) [x](#x) [y](#y)

## Properties

### gl[](#gl)

gl: [WebGL2RenderingContext](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGL2RenderingContext/)

### height[](#height)

height: number

### texture[](#texture)

texture: [WebGLTexture](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.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[](#width)

width: number

### x[](#x)

x: number

### y[](#y)

y: number
