---
title: "WebGLContextEvent | 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.

# Variable WebGLContextEvent

WebGLContextEvent: {  
    prototype: [WebGLContextEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEvent/);  
    new (type: string, eventInit?: [WebGLContextEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEventInit/)): [WebGLContextEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEvent/);  
}

#### Type Declaration

-   -   new (type: string, eventInit?: [WebGLContextEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEventInit/)): [WebGLContextEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEvent/)
    -   #### Parameters
        
        -   type: string
        -   `Optional`eventInit: [WebGLContextEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEventInit/)
        
        #### Returns [WebGLContextEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEvent/)
        
-   ##### prototype: [WebGLContextEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEvent/)
