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

`PopupEventType` - a mapping between the popup event name and the event value. These events are used with the [Popup.on](https://docs.maptiler.com/sdk-js/api-reference/classes/PopupMLGL/#on) method.

type PopupEventType \= {  
    [close](#close): [PopupEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/PopupEvent/);  
    [open](#open): [PopupEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/PopupEvent/);  
}

##### Index

### Properties

[close](#close) [open](#open)

## Properties

### close[](#close)

close: [PopupEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/PopupEvent/)

Fired when the popup is closed manually or programmatically.

### open[](#open)

open: [PopupEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/PopupEvent/)

Fired when the popup is opened manually or programmatically.
