---
title: "MTMapViewController.getPixelRatio | Mobile sdk | Mobile sdk android | Android"
description: "getPixelRatio"
---

> 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.

# MTMapViewController.getPixelRatio

open suspend override fun [getPixelRatio](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/get-pixel-ratio/)(): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)

Returns the pixel ratio currently used to render the map.
