Select to view content in your preferred language

control map transparency with zoom

596
4
03-09-2011 03:40 AM
SangamLama
Emerging Contributor
Hi there,

I have a slider that controls the map's transparency. But for a better UX, I want to be able to do the same instead with the zoom. So the more you zoom into the map, the more opaque it becomes, and vice-versa.

I can't even think of how I would begin trying because I didn't find any zoom eventhandler.

Can this even be possible?
0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor
The map is firing an 'ExtentChanged' event. You might hook up an handler to this event and, depending on the extent size, set the opacity of the map.
0 Kudos
SangamLama
Emerging Contributor
nice! let me check it out. thanks
The map is firing an 'ExtentChanged' event. You might hook up an handler to this event and, depending on the extent size, set the opacity of the map.
0 Kudos
Ray_DominicMaldonado
Emerging Contributor
Similar question:

For the zoom/pan controls in Flex Viewer, is there a setting to make it opaque at all times instead of on mouse hover?

Thanks,
Ray
0 Kudos
JenniferNery
Esri Regular Contributor
You might want to post your question to Flex Viewer forum 🙂 http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
0 Kudos