---
title: "latitudeToMercatorY | 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.

# Function latitudeToMercatorY

-   latitudeToMercatorY(lat: number): number[](#latitudetomercatory)
    
    Convert a wgs84 latitude to web Mercator Y (north-south axis), where northmost Y is 0 and southmost Y is 1.
    
    #### Parameters
    
    -   lat: number
    
    #### Returns number
