I would like to know the best practice for disable scales depending on where the user are in the map. This functionality would keep the user from seeing the "not cached yet" and then have to zoom out. This really bothers some of my users apparently. The "problem" occurs for us because our basemap is cached with greater scales in urban areas than in rural areas.
One way of fixing this, (I think) is to add an eventlistener to the map which after every PAN_END and ZOOM_END do a spatial query (user in a urban or rural area?) and change the map's LOD.
I believe this will work, haven't tried yet. Since I'm using viewer for flex I think I'll have to do the additions in the MapManager.mxml. That is why a looking for an alternative solution. Not having to change/extend anything but widgets will make it easier to upgrade.
It hit me that I could perhaps do this just as easily with a non visible widget. Or should this be done in a completely different and better way?
Thoughts will be appreciated
/Karl M
municipality of Växjö