ArcGIS for Android 设置地图网格背景

问题:在ArcGIS For Android10.2.6开发中,当项目价值tpk或者底图时,会出现网格背景,我们期望设置为白色背景。

解决:可以通过使用MapView控件的setMapBackground方法进行设下:

           mMapView.setMapBackground(Color.WHITE, Color.WHITE, 0, 0);//设置背景为白色

public void setMapBackground (int bkColor, int gridColor, float gridSize, float gridLineSize)

Sets the map background with color and grid.

Parameters
bkColor background color packed as ints.
 gridColor grid color packed as ints.
gridSize the size of grid.
  gridLineSize the line size of grid

你可能感兴趣的:(ArcGIS4Android)