Getting the max and min resolutions from a ArcGISTiledMapServiceLayer

Discussion created by watershed.web.mapping on Aug 10, 2012
Latest reply on Aug 17, 2012 by andrewb
My question is how does the MapView know what is the max and min resolution of the first layer I add to it, yet I have no way of finding out?

for example:

ArcGISTiledMapServiceLayer basemap = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");

I have no way of knowing the max and min resolution
but then if I do,

map = (MapView) findViewById(R.id.map);
map.addLayer(basemap, 0);

I can get


My problem is that, if now I want to change the basemap for one with a different max and min resolutions I have no dynamic way of knowing what they are, and it is important to know what they are in order to be able to restrict the zoom.

Any Ideas?