mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Minor changes
This commit is contained in:
parent
d007afded3
commit
84d211bb01
|
|
@ -49,7 +49,7 @@ namespace MapControl
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return string.Format(CultureInfo.InvariantCulture, "{0:F5},{1:F5}", Latitude, Longitude);
|
return string.Format(CultureInfo.InvariantCulture, "{0:F6},{1:F6}", Latitude, Longitude);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ namespace MapControl
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the geodetic Location of an element.
|
/// Gets the Location of an element.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Location GetLocation(FrameworkElement element)
|
public static Location GetLocation(FrameworkElement element)
|
||||||
{
|
{
|
||||||
|
|
@ -84,7 +84,7 @@ namespace MapControl
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the geodetic Location of an element.
|
/// Sets the Location of an element.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void SetLocation(FrameworkElement element, Location value)
|
public static void SetLocation(FrameworkElement element, Location value)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Map rectangle with double floating point precision, in contrast to Windows.Foundation.Rect.
|
/// Map rectangle with double floating point precision, in contrast to Windows.Foundation.Rect.
|
||||||
/// Used by MapProjection to convert geodetic bounding boxes to/from projected map coordinates.
|
/// Used by MapProjection when converting geographic bounding boxes to/from projected map coordinates.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MapRect
|
public class MapRect
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,8 @@ namespace MapControl
|
||||||
line.Measure(size);
|
line.Measure(size);
|
||||||
|
|
||||||
label.Text = length >= 1000d
|
label.Text = length >= 1000d
|
||||||
? string.Format(CultureInfo.InvariantCulture, "{0:0} km", length / 1000d)
|
? string.Format(CultureInfo.InvariantCulture, "{0:F0} km", length / 1000d)
|
||||||
: string.Format(CultureInfo.InvariantCulture, "{0:0} m", length);
|
: string.Format(CultureInfo.InvariantCulture, "{0:F0} m", length);
|
||||||
label.Width = size.Width;
|
label.Width = size.Width;
|
||||||
label.Height = size.Height;
|
label.Height = size.Height;
|
||||||
label.Measure(size);
|
label.Measure(size);
|
||||||
|
|
|
||||||
|
|
@ -150,8 +150,7 @@ namespace MapControl
|
||||||
extension = ".jpg";
|
extension = ".jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
var cacheKey = string.Format(CultureInfo.InvariantCulture,
|
var cacheKey = $"{cacheName}/{tile.ZoomLevel}/{tile.Column}/{tile.Row}{extension}";
|
||||||
"{0}/{1}/{2}/{3}{4}", cacheName, tile.ZoomLevel, tile.Column, tile.Row, extension);
|
|
||||||
|
|
||||||
var buffer = await ReadCacheAsync(cacheKey).ConfigureAwait(false);
|
var buffer = await ReadCacheAsync(cacheKey).ConfigureAwait(false);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue