Ok so here is the problem. I've already searched a lot about LODs on ESRI forum and on the web but i didn't find any solution.What i want to do is: when i switch the basemap in MapSwitcher i want to get tileInfo.lods(if the layer is tiled) and use this layer lods in my map. I have my service with different tiles than ArcGIS online map tiles, openstreetmap and bing map. I dont want to use these services as dynamic because the quality is dropping down to much and it's loading too long. As far as i know I even can't set the type for bing map and openstreetmap to dynamic to view them in my application. So here is the simple code from ESRI sample "switching basemaps":
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;
myMap.lods = tiledLayer.tileInfo.lods;
}
How can I implement this code in viewer source code? There is a lot of sites where switching between tiled layers causes loading different amount of LODs for every tiled layer. I think it would be so nice to have a additional option to declare in the layer tag, like this: <!-- openstreetmap --> <layer label="Open Street Map" type="osm" visible="false" getLODs = "true"/> with default value of getLODs set to false. So when i choose from basemaps list open street map layer it gets it own LODs and when I switch back to my layer with different LODs it gets LODs from my service and updates the map etc. Anyone got idea how to make this programmatically in fw 3.0?Thanks in advance,MDruzgala