Skip to content

GPUInitializationError

Defined in: util/gpu_initialization_error.ts:9

Thrown (via the map's error event) when a GPU rendering context cannot be created.

Carries the canvas attributes that were requested and, when the browser provided one, the originating webglcontextcreationerror statusMessage. Consumers can branch on instanceof GPUInitializationError and inspect the cause programmatically.

See

https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL

Extends

  • Error