Android 中加载 MapView 图块
在 Android 的地图应用程序(至少版本 5)中,图块的加载方式与在我自己的应用程序中使用 MapView 时不同,例如放大或缩小时。在 MapView 中显示灰色方格图像,直到图块完全加载并显示地图。在地图应用程序中,情况并非总是如此。未完全加载的图块仍会显示地图,但很模糊。地图应用程序在缩放时显示地图的方式更加美观。
我自己的应用程序中的 MapView 是否也可以拥有此“功能”?
的问候
最好
In the Maps application (at least version 5) for Android the tiles are loading in a different way, than when using a MapView in my own application, when for example zooming in or out. In the MapView displays a gray checkered image until the tile is fully loaded an than the map is displayed. In Maps application this it not the case all the time. Tiles that are not fully loaded are still showing a map but it is blurry. The Maps application way of showing the map when zooming is much prettier for the eye.
Is it possible to have this "feature" in a MapView in my own application as well?
Best regards
P
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,您提供的 API 往往落后于地图应用程序使用的 API。他们可能会也可能不会将这些更改添加到公共 API 中,但如果这样做通常需要相当长的时间。例如,我们仍然无法访问地形图图层......
Unfortunately, the API that you're given tends to lag behind the one in use by the maps application. They may or may not add those changes to the public API, but it usually takes quite a while if they do. For example, we still can't access the topo map layer...
我仍然发现这个问题是有效的。尤其是3G以上!我知道 Google 地图应用程序会缓存其图块(我们不能将其与 Google 的 T&C 进行比较),因此这不是一个很好的比较,但这是人们将会进行的比较!
我使用了以下功能:
告诉地图首先加载中央图块,但这对于渲染屏幕图块所需的时间仍然没有什么影响。
有没有人想出一个像样的解决方案(目前还没有考虑去离线地图)或者想办法让图块在 3G 上加载得更快?
I am still finding this issue is valid. Especially over 3G! I know that the Google Maps App Caches its tiles (and we can't as its against Googles T&C's) so thats not a great comparison, however its the comparison that people will be making!
I have used the function :
To tell the map to load the central tile first, however this still makes little difference to the time it takes to render onscreen tiles.
Has anyone come up with a decent solution (not looking at going to offline maps as of yet) or work around to make the tiles load faster over 3G?