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

前端 未结 9 1251
醉梦人生
醉梦人生 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:33

    Besides removing mapController.setStreetView(true), there is also another thing that should be added to the layout XML..

    xmlns:android="http://schemas.android.com/apk/res/android"
    
    
    

    Note the xml namespace after com.google.android.maps.MapView. After adding the namespace, the cross tiles disappeared. Don't know if it's a bug or the namespace is necessary in order for the api render the map correctly. Either way, it worked.

提交回复
热议问题