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

DOMPointReadOnly: {  
    prototype: [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/);  
    fromPoint(other?: [DOMPointInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointInit/)): [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/);  
    new (x?: number, y?: number, z?: number, w?: number): [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/);  
}

#### Type Declaration

-   -   new (x?: number, y?: number, z?: number, w?: number): [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/)
    -   #### Parameters
        
        -   `Optional`x: number
        -   `Optional`y: number
        -   `Optional`z: number
        -   `Optional`w: number
        
        #### Returns [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/)
        
-   ##### prototype: [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/)
    
-   ##### fromPoint: function
    
    -   fromPoint(other?: [DOMPointInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointInit/)): [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/)[](#frompoint-1)
        
        The static DOMPointReadOnly method **`fromPoint()`** creates and returns a new DOMPointReadOnly object given a source point.
        
        [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)
        
        #### Parameters
        
        -   `Optional`other: [DOMPointInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointInit/)
        
        #### Returns [DOMPointReadOnly](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMPointReadOnly/)
