# Get current zoom

**URL:** <https://community.cesium.com/t/get-current-zoom/3213>\
**Category:** CesiumJS\
**Created:** [October 21, 2015, 5:57pm UTC](https://community.cesium.com/t/get-current-zoom/3213 "2015-10-21T17:57:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priscila\_Santos](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Priscila\_Santos](https://community.cesium.com/u/Priscila_Santos)\
**Post date:** [October 21, 2015, 5:57pm UTC](https://community.cesium.com/t/get-current-zoom/3213/1 "2015-10-21T17:57:38Z")

</div>

I need to create a `setZoom()` function in Cesium, so the user can define how close he want to be. For that, I believe I need to evaluate the current zoom so I can decide if I have to use the `zoomIn` or `zoomOut` to show what the user asks.

Does anyone know if it’s possible to get the zoom level from the map when using Cesium? Or any other solution… Any tips are very welcome.

Does the function `getMagnitude()` does the trick?

Thanks!
