Packagecom.esri.ags.layers
Classpublic class LOD

Levels of detail (LOD) for a TiledMapServiceLayer. Each LOD corresponds to a map at a given scale or resolution. Both resolution and scale are required fields. LOD's are automatically sorted based on scale, so setting level isn't necessary.


Example
ActionScript code to add map levels (note: tiled layers will only show at scales they were created for):
var lods:Array = myMap.lods;
lods.push( new LOD( NaN, 0.6, 3000) );
lods.push( new LOD( NaN, 0.3, 1500) );
lods.push( new LOD( NaN, 0.1, 500) );

See also

com.esri.ags.Map.lods
TiledMapServiceLayer
TileInfo.lods
Live sample - Add additional LODs to map
Live sample - Updating the map LODs based on a tiled service.
Live sample - Setting the LODs for the map manually.


Public Properties
 PropertyDefined by
  level : Number
ID for each level.
LOD
  resolution : Number
Resolution in map units of each pixel in a tile for each level.
LOD
  scale : Number
Scale for each level.
LOD
Public Methods
 MethodDefined by
  
LOD(level:Number, resolution:Number, scale:Number)
Creates a new LOD object.
LOD
Property detail
levelproperty
public var level:Number

ID for each level. The top most level is 0.

resolutionproperty 
public var resolution:Number

Resolution in map units of each pixel in a tile for each level.

scaleproperty 
public var scale:Number

Scale for each level.

Constructor detail
LOD()constructor
public function LOD(level:Number, resolution:Number, scale:Number)

Creates a new LOD object.

Parameters
level:Number — ID for each level.
 
resolution:Number — Resolution in map units of each pixel in a tile for each level.
 
scale:Number — Scale for each level.