MapView rendering with tiles missing with an “x” in the center

前端 未结 9 1250
醉梦人生
醉梦人生 2020-11-28 14:01

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 conn

9条回答
  •  眼角桃花
    2020-11-28 14:17

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

    mapView.setSatellite(true);
    
    mapView.setStreetView(true);
    

    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.

    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?

提交回复
热议问题