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

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

#### Type Declaration

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