android - 如何从 Android 上的 Mapbox mapView 中删除白色网格?

标签 android mapbox

有没有办法删除/禁用覆盖我的 Android Mapbox mapView 的白色网格?我无法在 Mapbox API 文档中找到这个问题的答案。感谢您的帮助。

This is how the map renders on my Android device

View 的 XML:

<com.mapbox.mapboxsdk.views.MapView
        android:id="@+id/mapview"
        android:layout_width="fill_parent"
        android:layout_height="400dp"
        mapbox:mapid="@string/map_id"
        mapbox:accessToken="@string/mapbox_token"/>

最佳答案

mapView.getMapOverlay().setDrawLoadingTile(false);

应该有帮助。请参阅TilesOverlay class .

关于android - 如何从 Android 上的 Mapbox mapView 中删除白色网格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29808189/

相关文章:

java - 转到最近使用的内容并返回时显示错误的 fragment

安卓 : Difference FloatingActionButton and normal button

mapbox - 如何从 Mapbox 国家边界获取一组国家边界

javascript - Mapbox 事件监听器

Android Recyclerview vs ListView with Viewholder

java - 根据当前位置Android从最近到最远对Java中的列表进行排序

android - 有时不调用 RealmChangeListener

ios - 导航模式下不显示文本说明 (Mapbox iOS)

javascript - 单击时创建 Mapbox JS 标记

javascript - 有没有办法使用 Mapbox 将图层添加到通过 AJAX 回调生成的数据中?