JALevine

Removing LODS after the map has loaded

Discussion created by JALevine on Oct 10, 2012
Latest reply on Dec 21, 2012 by gjohnsonesriaustralia-com-au-esridist
Any Idea how to remove LODS from the map after the map is loaded?  In flex, it's as simple as altering the map's lods array:
map.lods.push( new LOD(19,0.149291071,564.248588))


However, it doesn't appear to be as straightforward in JavaScript.  There are examples on how to set the LODS during map instantiation, but I'm trying to alter them after the map loads.

I've tried:
map.__tileInfo.lods.splice(0,14)


This appears to successfully remove 14 LODS from the array, but results in very weird map behavior, and the zoom slider doesn't reset to show me that my LODS have been removed.

Any help is appreciated.

Thanks

Outcomes