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

GeolocationPositionError: {  
    PERMISSION\_DENIED: 1;  
    POSITION\_UNAVAILABLE: 2;  
    prototype: [GeolocationPositionError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeolocationPositionError/);  
    TIMEOUT: 3;  
    new (): [GeolocationPositionError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeolocationPositionError/);  
}

#### Type Declaration

-   -   new (): [GeolocationPositionError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeolocationPositionError/)
    -   #### Returns [GeolocationPositionError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeolocationPositionError/)
        
-   ##### `Readonly`PERMISSION\_DENIED: 1
    
-   ##### `Readonly`POSITION\_UNAVAILABLE: 2
    
-   ##### prototype: [GeolocationPositionError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeolocationPositionError/)
    
-   ##### `Readonly`TIMEOUT: 3
