开发者

How to detect current zoom level on map view?

开发者 https://www.devze.com 2023-04-13 08:30 出处:网络
I have a map view that draws radius overlay from current lo开发者_如何学Gocation. But for that, I need to know current zoomlevel on the map.

I have a map view that draws radius overlay from current lo开发者_如何学Gocation. But for that, I need to know current zoomlevel on the map. How can I do this?


Use getZoomLevel() method of MapView class.


Use the function:

mapView.getZoomLevel()


getZoomLevel() is deprecated now (v 6+) Use getZoomLevelDouble() instead.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消