---
title: "MapContextEvent | 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 MapContextEvent

An event related to the web gl context

type MapContextEvent \= {  
    [originalEvent](#originalevent): [WebGLContextEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLContextEvent/);  
    [type](#type): "webglcontextlost" | "webglcontextrestored";  
}

##### Index

### Properties[](#properties)

[originalEvent](#originalevent) [type](#type)

## Properties[](#properties-1)

### originalEvent[](#originalevent)

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

### type[](#type)

type: "webglcontextlost" | "webglcontextrestored"
