user4391541
user4391541

Reputation:

What is the grid behind the map in an Android app developed with the ArcGIS SDK for Android?

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.

out put of my app on android device

Upvotes: 3

Views: 416

Answers (1)

Gary Sheppard
Gary Sheppard

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

Related Questions