Dynamic visibility not working correctly


The dynamic visibility for layers and labels doesn't work properly. The layer is displayed but not at the scale set using the layer context menu Set Dynamic Visibility Scale. I used the DemoMap and the standard State and County shapefiles.
Closed Feb 28 at 8:04 AM by jany_
This issue list is no longer active. This issue has been copied to our issue list on github (https://github.com/DotSpatial/DotSpatial/issues)

Please check there to find out whether this issue was fixed.


Shade1974 wrote Jan 31, 2011 at 11:37 PM

Is it off by exactly one zoom scroll? This may be an issue of > vs. >= in the comparison test or something. If it is completely wrong, then it might be something different.


kurtw555 wrote Feb 1, 2011 at 4:05 PM

DynamicVisibilityWidth = MapFrame.Extent.Width
DynamicVisibilityWidth = MapFrame.ViewExtents.Width

in DotSpatial.Symbology.Layer.cs looks like it fixes the problem.

kurtw555 wrote Feb 1, 2011 at 5:16 PM

Fixes the problem for the layer but not the labels.