Index: Core/Components/src/Core.Components.DotSpatial.Forms/DotSpatialMap.cs
===================================================================
diff -u -r0041abb551e86c2f67e05ff9d26882389f1ac595 -ra0937d1c7e576aa9725590cff59abddbbdb30c03
--- Core/Components/src/Core.Components.DotSpatial.Forms/DotSpatialMap.cs (.../DotSpatialMap.cs) (revision 0041abb551e86c2f67e05ff9d26882389f1ac595)
+++ Core/Components/src/Core.Components.DotSpatial.Forms/DotSpatialMap.cs (.../DotSpatialMap.cs) (revision a0937d1c7e576aa9725590cff59abddbbdb30c03)
@@ -29,18 +29,18 @@
/// The DotSpatial Map Control for 2D applications.
///
/// This class was introduced to prevent a when zooming in on
- /// an extent smaller than 1e-6 and should be removed when DotSpatial solved the issue.
+ /// an extent smaller than 1e-3 and should be removed when DotSpatial solved the issue.
public class DotSpatialMap : Map
{
- private const double minExt = 1e-6;
+ private const double minExt = 1e-3;
///
- /// Fires the ViewExtentsChanged event. Corrects the ViewExtent if it is smaller than 1e-6. If ZoomOutFartherThanMaxExtent is set, it corrects the
+ /// Fires the ViewExtentsChanged event. Corrects the ViewExtent if it is smaller than 1e-3. If ZoomOutFartherThanMaxExtent is set, it corrects the
/// ViewExtent if it is bigger then 1e+9. Otherwise it corrects the ViewExtent if it is bigger than the Maps extent + 10%.
///
/// The source of the event.
/// An object that contains extent data.
- /// Corrects the with a minimum extent of 1e-6.
+ /// Corrects the with a minimum extent of 1e-3.
protected override void OnViewExtentsChanged(object sender, ExtentArgs args)
{
if (ViewExtents.Width < minExt || ViewExtents.Height < minExt) // the current height or width is smaller than minExt
Index: Core/Components/test/Core.Components.DotSpatial.Forms.Test/DotSpatialMapTest.cs
===================================================================
diff -u -r6a5d7b40b7ba4dcb73e393075338352d194e97c2 -ra0937d1c7e576aa9725590cff59abddbbdb30c03
--- Core/Components/test/Core.Components.DotSpatial.Forms.Test/DotSpatialMapTest.cs (.../DotSpatialMapTest.cs) (revision 6a5d7b40b7ba4dcb73e393075338352d194e97c2)
+++ Core/Components/test/Core.Components.DotSpatial.Forms.Test/DotSpatialMapTest.cs (.../DotSpatialMapTest.cs) (revision a0937d1c7e576aa9725590cff59abddbbdb30c03)
@@ -32,9 +32,9 @@
{
[Test]
[Apartment(ApartmentState.STA)]
- [TestCase(1e-5)]
- [TestCase(1e-6)]
- [TestCase(1e-7)]
+ [TestCase(1e-2)]
+ [TestCase(1e-3)]
+ [TestCase(1e-4)]
[TestCase(1e+8)]
[TestCase(1e+9)]
[TestCase(1e+10)]