davidboyd

Layer List check boxes need to respect scale visibility settings

Discussion created by davidboyd on Jan 3, 2013
I'm still fairly new with using the API but making progress.  I have an application with a layer list and one layer (state trails) is set in the map service to turn off at a certain scale.  Right now the layer list doesn't reflect this, and the check box will still remain on if the layer is not visible due to scale.  I'm trying to figure out how to get the layer list to reflect when a layer isn't available due to scale...maybe grey out the check box?  At the very least I need it to uncheck and remain unchecked until it's at a viewable scale.  Any ideas how I could approach this?  Many thanks! David 

http://dswcapps.dcr.virginia.gov/dnh/vop/vop.htm

Outcomes