diff --git a/MapControl/Shared/Location.cs b/MapControl/Shared/Location.cs index 9ea4e7a2..e2e916df 100644 --- a/MapControl/Shared/Location.cs +++ b/MapControl/Shared/Location.cs @@ -49,7 +49,7 @@ namespace MapControl 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); } /// diff --git a/MapControl/Shared/MapPanel.cs b/MapControl/Shared/MapPanel.cs index be0a1ebf..5d22fd78 100644 --- a/MapControl/Shared/MapPanel.cs +++ b/MapControl/Shared/MapPanel.cs @@ -76,7 +76,7 @@ namespace MapControl } /// - /// Gets the geodetic Location of an element. + /// Gets the Location of an element. /// public static Location GetLocation(FrameworkElement element) { @@ -84,7 +84,7 @@ namespace MapControl } /// - /// Sets the geodetic Location of an element. + /// Sets the Location of an element. /// public static void SetLocation(FrameworkElement element, Location value) { diff --git a/MapControl/Shared/MapRect.cs b/MapControl/Shared/MapRect.cs index 0ac396c8..109a713b 100644 --- a/MapControl/Shared/MapRect.cs +++ b/MapControl/Shared/MapRect.cs @@ -11,7 +11,7 @@ namespace MapControl { /// /// 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. /// public class MapRect { diff --git a/MapControl/Shared/MapScale.cs b/MapControl/Shared/MapScale.cs index a18583cd..acdfffbb 100644 --- a/MapControl/Shared/MapScale.cs +++ b/MapControl/Shared/MapScale.cs @@ -99,8 +99,8 @@ namespace MapControl line.Measure(size); label.Text = length >= 1000d - ? string.Format(CultureInfo.InvariantCulture, "{0:0} km", length / 1000d) - : string.Format(CultureInfo.InvariantCulture, "{0:0} m", length); + ? string.Format(CultureInfo.InvariantCulture, "{0:F0} km", length / 1000d) + : string.Format(CultureInfo.InvariantCulture, "{0:F0} m", length); label.Width = size.Width; label.Height = size.Height; label.Measure(size); diff --git a/MapControl/Shared/TileImageLoader.cs b/MapControl/Shared/TileImageLoader.cs index d62266d7..0d2735c5 100644 --- a/MapControl/Shared/TileImageLoader.cs +++ b/MapControl/Shared/TileImageLoader.cs @@ -150,8 +150,7 @@ namespace MapControl extension = ".jpg"; } - var cacheKey = string.Format(CultureInfo.InvariantCulture, - "{0}/{1}/{2}/{3}{4}", cacheName, tile.ZoomLevel, tile.Column, tile.Row, extension); + var cacheKey = $"{cacheName}/{tile.ZoomLevel}/{tile.Column}/{tile.Row}{extension}"; var buffer = await ReadCacheAsync(cacheKey).ConfigureAwait(false);