Limiting LODs displayed on map

Discussion created by jeffozvold on Feb 12, 2011
Latest reply on Feb 14, 2011 by citizens
I am using an ArcGISTiledMapServiceLayer. I know that I only want LODs 4 through 14. I don't want to hardcode the resolution/scale of these LODs.

However, I have a catch-22 problem. I can only limit the LODs displayed on construction of the map; it doesn't appear that I can set them later. But I can't figure out the LODs available without loading the layer, which means adding it to a previously-constructed map.

Does this mean I can only do this by constructing a map, adding the layer, determining the LODs, destroying the map, reconstructing it with the right LODs, and re-adding the layer? Surely it's not so inefficient.