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

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

#### Type Declaration

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