Determining if a tiled service is available

447
1
06-14-2010 02:24 PM
KevinGooss
Occasional Contributor
I have a map that has the esri street map service within it. I also have additional lods outside of where the street map data is available (zoomed in further). When a user zooms past the lod where street data is available I would like to disable the button in my ui that shows/hides the street map. Is there a way to do this?
I basically need to compare the current zoom level and see if that is outside of the range of the street data and act accordingly.
Any suggestions?
0 Kudos
1 Reply
JohnGrayson
Esri Regular Contributor
You could listen to the onExtentChange event of the map and then enable/disable your button based on the 'lod' parameter that is passed into this event.
0 Kudos