---
title: "getCameraFromMapStyle | Mobile sdk | Mobile sdk android | Android"
description: "getCameraFromMapStyle"
---

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

# getCameraFromMapStyle

fun [getCameraFromMapStyle](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-camera-helper/-companion/get-camera-from-map-style/)(): [MTMapCameraHelper](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-camera-helper/)

Returns camera object initialized from map style options.

If any of the properties is not set within the style, it will default to 0.
