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

# Variable TouchEvent

TouchEvent: {  
    prototype: [TouchEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEvent/);  
    new (type: string, eventInitDict?: [TouchEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEventInit/)): [TouchEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEvent/);  
}

#### Type Declaration

-   -   new (type: string, eventInitDict?: [TouchEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEventInit/)): [TouchEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEvent/)
    -   #### Parameters
        
        -   type: string
        -   `Optional`eventInitDict: [TouchEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEventInit/)
        
        #### Returns [TouchEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEvent/)
        
-   ##### prototype: [TouchEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.TouchEvent/)
