Map refresh does not seem to work with arcgis10 when turning layers on and off

637
1
12-12-2011 11:42 AM
GabiVoicu
Deactivated User
did anyone experience this weird behavior when some layer stays on the map and does not want to leave the map image but really only within the extent where it was on ...i am completely clueless where to look for stuff to fix this very abnormal behavior...here is my link to try out turning layers within a certain group on and off...if one layer stays on at all times all is cool ...etc...etc


http://gismaps.collincountytx.gov/main.html


...also i think it is related to this ealier post
http://forums.arcgis.com/threads/29105-visibleLayers-and-setVisibleLayers?highlight=refresh


thank you
0 Kudos
1 Reply
GabiVoicu
Deactivated User
ok ...this code fixed my issue


  //if there aren't any layers visible set the array value to = -1
        if(visible.length === 0){
          visible.push(-1);
        }


thank you
0 Kudos