什么是缩放比例15相当于? [英] What is zoom level 15 equivalent to?

查看:200
本文介绍了什么是缩放比例15相当于?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,这似乎比我想象的要难得多。我正在使用地图显示,我已将缩放级别设置为15:

  mapController.setZoom(15); 

等于距离的不同缩放级别是什么?我假设是某种日志或指数规模。如果我选择1或18作为缩放级别,那么在地图上为每个缩放级别显示的近似距离是多少?

/ div>

根据 MapController.setZoom


设置地图的缩放级别。该值将被限制在
1和21之间,尽管并非所有区域都有较高缩放比例
的区块。这只是直接设置缩放级别;对于
逐步缩放幻想插页式动画,请使用zoomIn()或
zoomOut()。


参数:zoomLevel - At zoomLevel 1,地球的赤道是
256像素长。每个连续的缩放级别都会被放大
的2倍。

返回:新缩放级别,介于1和21之间。



For some reason this seems much harder to find than I thought it would be. I am working with a map display and I have set the zoom level to 15:

mapController.setZoom(15);

What are the different zoom levels equal to in distance? I am assuming is some kind of log or exponential scale. If I choose 1 or 18 for the zoom levels, what is the approximate distance that will be displayed on the screen for each zoom level on a map?

解决方案

According to MapController.setZoom:

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.

这篇关于什么是缩放比例15相当于?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆