edits to mod_AgsDynamicLayer.js and map.js to keep layer hidden on pan/zoom if toggled of in TOC and to allow turning off all sublayers in a service