This project is read-only.
1

Closed

Dynamic visibility not working correctly

description

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 9: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.

comments

Shade1974 wrote Feb 1, 2011 at 12:37 AM

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.

Ted

kurtw555 wrote Feb 1, 2011 at 5:05 PM

Changing
DynamicVisibilityWidth = MapFrame.Extent.Width
to
DynamicVisibilityWidth = MapFrame.ViewExtents.Width

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

kurtw555 wrote Feb 1, 2011 at 6:16 PM

Fixes the problem for the layer but not the labels.