简体   繁体   中英

How to detect current zoom level on map view?

I have a map view that draws radius overlay from current location. But for that, I need to know current zoomlevel on the map. How can I do this?

使用 MapView 类的getZoomLevel()方法。

使用函数:

mapView.getZoomLevel()

现在不推荐使用 getZoomLevel() (v 6+) 使用 getZoomLevelDouble() 代替。

In MapView Class, call method - getZoomLevel(). It returns the current zoom level of the map.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM