mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-06 00:30:01 +01:00
Comments
This commit is contained in:
parent
381dca48ce
commit
ff8a81e087
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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°
|
||||
|
|
|
|||
Loading…
Reference in a new issue