---
title: "pixelToLat | Weather SDK | JavaScript maps SDK"
description: "Documentation for Weather JS"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function pixelToLat

-   pixelToLat(y: number, imageSize: number): number[](#pixeltolat)
    
    With a mercator image (origin: top left), return the latitude from the y in pixel coordinates
    
    #### Parameters
    
    -   y: number
    -   imageSize: number
    
    #### Returns number
