MapView 渲染图块缺少“x"在中心 [英] MapView rendering with tiles missing with an "x" in the center

查看:19
本文介绍了MapView 渲染图块缺少“x"在中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这非常非常奇怪.我从未见过类似的东西.在我拍摄这张截图时,我没有加载任何叠加层.首先,我认为是我的互联网连接无法下载瓷砖信息;但是我们有很多用户报告了从市场上下载的相同问题.这就像一周前刚刚开始发生.不知道为什么.有人有线索吗?谢谢!

This is very, very strange. I've never seen anything like it. At the time I am took this screenshot, I'm not loading any overlays. First, I thought it was my internet connection where it couldn't download the tile information; but we have many users reporting the same issue who downloaded from the market. This just started happening like a week ago. Not sure why though. Anyone have a clue? Thanks!

推荐答案

好的.从一个干净的项目开始后,我发现这两行代码是罪魁祸首.

Ok. After starting from a clean project I found these two lines of code that was the culprit.

mapView.setSatellite(true);

mapView.setStreetView(true);

他们背靠背出现,我回顾了开发的最初阶段,他们就在那里,而且工作得很好.显然,这是 MapView 中的一个 BUG,因为我猜它试图同时显示 SateliteView 和 StreetView.人们会认为后者会覆盖前者;但我想不会.

They appeared back to back of each other and I looked back at the very beginning of development and they were there and it worked just fine. Apparently, this is a BUG in the MapView as I'm guessing it tries to show both SateliteView and StreetView at the same time. One would think that the latter would override the former; but I guess not.

所以,我的问题是,为什么这会在上周左右突然浮出水面.我的猜测是地图应用程序最后一次在市场上更新是在 9 月 8 日,也许在从市场更新后的一天左右,这个问题开始重新出现.

So, the question I have is, why this all of the sudden surfaced just within the last week or so. My guess is that the Maps Application was last updated in the market on Sept 8th and maybe a day or so after updating from the market, this issue started to resurface.

作为测试,有人可以将这两行添加到他们的代码中并确认您得到相同的行为吗?

As a test, can someone just add these two lines to their code and confirm you get the same behavior?

这篇关于MapView 渲染图块缺少“x"在中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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