Reputation:
I am creating a simple mapping app using the ArcGIS Runtime SDK for Android. I created a MapView
and added a tile package (.tpk) to it as its base map. The picture below is how it appears on the screen. Can anyone tell me why there is a grid above and below my map and how to remove it? I thought it was the MapView
's grid so I tried calling mapView.getGrid().setVisible(false)
, but the grid still appears.
Upvotes: 3
Views: 416
Reputation: 4932
Use MapView.setMapBackground(int, int, float, float):
mapView.setMapBackground(Color.GRAY, Color.GRAY, 0, 0);
MapView.getGrid()
is unrelated. If you call mapView.getGrid().setType(GridType.MGRS)
and leave the grid's visibility at the default of true
, you will see a Military Grid Reference System (MGRS) grid on top of the map.
Upvotes: 0