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

# Class Event

The event class

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Event))

-   Event
    -   [ErrorEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/ErrorEvent/)
    -   [MapWheelEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.MapWheelEvent/)
    -   [MapTouchEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.MapTouchEvent/)
    -   [MapMouseEvent](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.MapMouseEvent/)

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[type](#type)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new Event(type: string, data?: any): Event[](#constructorevent)
    
    #### Parameters
    
    -   type: string
    -   `Optional`data: any
    
    #### Returns Event
    

## Properties[](#properties-1)

### `Readonly`type[](#type)

type: string
