diff --git a/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs b/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs index ed19b67b..f4d770a1 100644 --- a/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs +++ b/MapControl/Avalonia/DependencyPropertyHelper.Avalonia.cs @@ -39,7 +39,8 @@ namespace MapControl if (coerce != null) { - // do not coerce default value + // Do not coerce default value. + // coerceFunc = (obj, value) => Equals(value, defaultValue) ? value : coerce((TOwner)obj, value); } diff --git a/MapControl/Shared/BoundingBox.cs b/MapControl/Shared/BoundingBox.cs index 2452ab43..fd655919 100644 --- a/MapControl/Shared/BoundingBox.cs +++ b/MapControl/Shared/BoundingBox.cs @@ -65,7 +65,7 @@ namespace MapControl ? double.Parse(values[4], NumberStyles.Float, CultureInfo.InvariantCulture) : 0d; - // always return a LatLonBox, i.e. a BoundingBox with optional rotation, as used by GeoImage and GroundOverlay + // Always return a LatLonBox, i.e. a BoundingBox with optional rotation, as used by GeoImage and GroundOverlay. // return new LatLonBox( double.Parse(values[0], NumberStyles.Float, CultureInfo.InvariantCulture), diff --git a/MapControl/Shared/LocationCollection.cs b/MapControl/Shared/LocationCollection.cs index a96ac8a5..5776dd57 100644 --- a/MapControl/Shared/LocationCollection.cs +++ b/MapControl/Shared/LocationCollection.cs @@ -172,7 +172,7 @@ namespace MapControl // beta = atan(dlon,dy) // sec(beta) = 1 / cos(atan(dlon,dy)) = sqrt(1 + (dlon/dy)^2) - + // var sec = Math.Sqrt(1d + dlon * dlon / (dy * dy)); const double secLimit = 1000d; // beta approximately +/-90°