出于某种原因,这似乎比我想象的要难得多.我正在使用地图显示,我已将缩放级别设置为15:
mapController.setZoom(15);
有什么不同的缩放级别等于距离?我假设是某种日志或指数规模.如果我为缩放级别选择1或18,那么在地图上每个缩放级别的屏幕上显示的近似距离是多少?
解决方法:
根据@L_419_0@:
总结Sets the zoomlevel of the map. The value will be clamped to be between
1 and 21 inclusive, though not all areas have tiles at higher zoom
levels. This just sets the level of the zoom directly; for a
step-by-step zoom with fancy interstitial animations, use zoomIn() or
zoomOut().Parameters: zoomLevel – At zoomLevel 1, the equator of the earth is
256 pixels long. Each successive zoom level is magnifIEd by a factor
of 2.Returns: the new zoom level, between 1 and 21 inclusive.
以上是内存溢出为你收集整理的android – 什么是缩放级别15相当于?全部内容,希望文章能够帮你解决android – 什么是缩放级别15相当于?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)