# PopupEventType

> **PopupEventType** = `object`

Defined in: [ui/popup.ts:138](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/ui/popup.ts#L138>)

`PopupEventType` - a mapping between the popup event name and the event value. These events are used with the [Popup.on](<https://maplibre.org/maplibre-gl-js/docs/API/classes/Popup/#on>) method.

## Properties

### close

> **close**: [`PopupEvent`](<https://maplibre.org/maplibre-gl-js/docs/API/classes/PopupEvent/index.md>)

Defined in: [ui/popup.ts:146](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/ui/popup.ts#L146>)

Fired when the popup is closed manually or programmatically.

---

### open

> **open**: [`PopupEvent`](<https://maplibre.org/maplibre-gl-js/docs/API/classes/PopupEvent/index.md>)

Defined in: [ui/popup.ts:142](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/ui/popup.ts#L142>)

Fired when the popup is opened manually or programmatically.
