Select to view content in your preferred language

I don't understand this:  map.lods = tiledLayer.tileInfo.lods;

2951
2
11-23-2010 10:29 AM
LeiZhou
Deactivated User
I don't understand the last sentense in the following flex API: map.lods = tiledLayer.tileInfo.lods;
lods is a variable? tileInfo is a property of the object tileLayer, right? Then how come a property with a ".lod"? What does it mean? A property itself should be a variable, I don't understand why it can be followed by another variable ".lod"? Thanks a lot!

*************************Flex API ****************************
private function layerShowHandler(event:FlexEvent):void           

{               
// update the LODs/zoomslider to use/show the levels for the selected base map            

   var tiledLayer:TiledMapServiceLayer = event.target as TiledMapServiceLayer;
               map.lods = tiledLayer.tileInfo.lods; 
          }
Tags (2)
0 Kudos
2 Replies
LeiZhou
Deactivated User
Ok, I get it.  tileInfo is an object of the class TileInfo, so lods is its property. 

But I am confused about the following one:

var tiledLayer:TiledMapServiceLayer = event.target as TiledMapServiceLayer;

event.target as TileMapServiceLayer ??? Is this a programming language?
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos