scale OR zooming&panning to limit at the border of available tiles

2025
2
03-17-2016 05:47 AM
Shaulezrac
New Contributor

Hi

I'm loading world topo & sattelite map to mapview, when i pan it shows missing tiles.

Same thing when working with local tpk files which are much much smaller.

How can i set the scale of the zooming&panning to the limit of available tiles?
Untitled.png

0 Kudos
2 Replies
AlexanderNohe1
Occasional Contributor III

I would suggest that you look at the setExtent method found on the MapView object:

MapView | ArcGIS Android 10.2.7 API

This may contain the information that you are looking for.

0 Kudos
Shaulezrac
New Contributor

I know setExtent, requires 2 points bot-left to top-right.

I tried playing with it.

path = SATTELITE_BASEMAP_SERVICE_URL;
ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLayer(path);
mapView.addLayer(layer, 0);
Geometry boundries = layer.getExtent();
mapView.setExtent(boundries, 0);

Not working with online & tpk maps.

0 Kudos