mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 22:05:07 +00:00
Comments
This commit is contained in:
parent
381dca48ce
commit
ff8a81e087
3 changed files with 4 additions and 3 deletions
|
|
@ -39,7 +39,8 @@ namespace MapControl
|
||||||
|
|
||||||
if (coerce != null)
|
if (coerce != null)
|
||||||
{
|
{
|
||||||
// do not coerce default value
|
// Do not coerce default value.
|
||||||
|
//
|
||||||
coerceFunc = (obj, value) => Equals(value, defaultValue) ? value : coerce((TOwner)obj, 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)
|
? double.Parse(values[4], NumberStyles.Float, CultureInfo.InvariantCulture)
|
||||||
: 0d;
|
: 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(
|
return new LatLonBox(
|
||||||
double.Parse(values[0], NumberStyles.Float, CultureInfo.InvariantCulture),
|
double.Parse(values[0], NumberStyles.Float, CultureInfo.InvariantCulture),
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ namespace MapControl
|
||||||
|
|
||||||
// beta = atan(dlon,dy)
|
// beta = atan(dlon,dy)
|
||||||
// sec(beta) = 1 / cos(atan(dlon,dy)) = sqrt(1 + (dlon/dy)^2)
|
// sec(beta) = 1 / cos(atan(dlon,dy)) = sqrt(1 + (dlon/dy)^2)
|
||||||
|
//
|
||||||
var sec = Math.Sqrt(1d + dlon * dlon / (dy * dy));
|
var sec = Math.Sqrt(1d + dlon * dlon / (dy * dy));
|
||||||
|
|
||||||
const double secLimit = 1000d; // beta approximately +/-90°
|
const double secLimit = 1000d; // beta approximately +/-90°
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue