Android MapView zoom level doesn't exceed 19?

蓝咒 提交于 2019-12-13 02:59:16

问题


I am have just completed the hello-mapview tutorial and I am confused by the max zoom levels I can achieve. The documentation for the MapController class states that the zoom can go up to level 21 however I cannot seem to exceed 19. I also notice that the google Maps app from the market can go 2 extra zoom levels. Is there a way that I can get these extra two zoom levels?


回答1:


I was just helped on the same topic so if you're still looking for the answer, just read this one here




回答2:


Try using:

// decrement it until you get map visible...
controller.setZoom(map.getMaxZoomLevel() - 1) 


来源:https://stackoverflow.com/questions/5303862/android-mapview-zoom-level-doesnt-exceed-19

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!