您的位置:首页 > 移动开发 > Android开发

ArcGIS for Android 设置地图网格背景

2015-08-13 11:38 351 查看
问题:在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
bkColorbackground color packed as ints.
gridColorgrid color packed as ints.
gridSizethe size of grid.
gridLineSizethe line size of grid
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: