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 |
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
