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

# Function getWebGLSupportError

-   getWebGLSupportError(): string | null[](#getwebglsupporterror)
    
    This function tests if WebGL2 is supported. Since it can be for a different reasons that WebGL2 is not supported but we do not have an action to take based on the reason, this function return null if there is no error (WebGL is supported), or returns a string with the error message if WebGL2 is not supported.
    
    #### Returns string | null
