Set Dynamic Visibility

Nov 4, 2010 at 8:17 PM
Edited Nov 21, 2010 at 2:43 PM


I just want to set dynamic visibility for specific layer from legend in MW6 (C#). But program stopped at this line in layer.cs:

DynamicVisibilityWidth = MapFrame.Extents.Width;

What to do, what is wrong with MapFrame.Extents? Is it empty or what?

I have discovered that this happend only when layers are organized in the groups. How to handle dynamic visibility for layer in group?



Thanks for any help, Vojko