Packagecom.esri.ags.layers.supportClasses
Classpublic class LOD
InheritanceLOD Inheritance flash.events.EventDispatcher

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.

View the examples

See also

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


Public Properties
 PropertyDefined By
  level : Number
[read-only] ID for each level.
LOD
  resolution : Number
[read-only] Resolution in map units of each pixel in a tile for each level.
LOD
  scale : Number
[read-only] 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
level:Number  [read-only]

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

This property can be used as the source for data binding.


Implementation
    public function get level():Number
resolutionproperty 
resolution:Number  [read-only]

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

This property can be used as the source for data binding.


Implementation
    public function get resolution():Number
scaleproperty 
scale:Number  [read-only]

Scale for each level.

This property can be used as the source for data binding.


Implementation
    public function get scale():Number
Constructor Detail
LOD()Constructor
public function LOD(level:Number, resolution:Number, scale:Number)

Creates a new LOD object.

Parameters
level:Number (default = NaN) — ID for each level.
 
resolution:Number (default = NaN) — Resolution in map units of each pixel in a tile for each level.
 
scale:Number (default = NaN) — Scale for each level.
Examples
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) );