Select to view content in your preferred language

TOC Sample on/off layer

638
3
01-16-2013 12:23 PM
francescodi_vito
Deactivated User
Hy guys,
i saw the TOC Sample that i download. When i run the project all layer are ON.
If i would like that all layer are OFF when i open the project?
What is the parameter to be changed?
Help please
Thanks
0 Kudos
3 Replies
WadeLobb
Regular Contributor
Turn all layers off (right click the data frame (often called layers) and turn all layers off)
Save the file (mxd)
next time you open the document all the layers will be off
0 Kudos
DiveshGoyal
Esri Regular Contributor
if you want all layers to be off by default, you can listen for the AGSLayerDidLoadNotification and then set the layer's visible property to NO
0 Kudos
francescodi_vito
Deactivated User
thanks, but i don't found this method in toc.m
is there any example to see?
thanks
0 Kudos