diff --git a/.gitignore b/.gitignore
index a8a6a1ff..abc5c912 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,13 @@
bin/
obj/
packages/
+TestApps/
+Win2D/
+MapControl.UWP1.csproj
+MapControl.WPF.VS2015.csproj
+MapProjections.WPF.VS2015.csproj
+MapControl_TestApps.sln
+MapLayers_ApiKey.cs
+MergeNugetPackages.cmd
*.nupkg
+*.txt
diff --git a/FileDbCache/UWP/Properties/AssemblyInfo.cs b/FileDbCache/UWP/Properties/AssemblyInfo.cs
index 714e7b6c..af74c084 100644
--- a/FileDbCache/UWP/Properties/AssemblyInfo.cs
+++ b/FileDbCache/UWP/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
diff --git a/FileDbCache/WPF/FileDbCache.WPF.csproj b/FileDbCache/WPF/FileDbCache.WPF.csproj
index 6cfb67fe..6f36b4c3 100644
--- a/FileDbCache/WPF/FileDbCache.WPF.csproj
+++ b/FileDbCache/WPF/FileDbCache.WPF.csproj
@@ -9,7 +9,7 @@
..\..\MapControl.snk
false
XAML Map Control
- 5.0.1
+ 5.1.0
ObjectCache implementation based on EzTools FileDb
Clemens Fischer
Copyright © 2020 Clemens Fischer
diff --git a/MBTiles/UWP/Properties/AssemblyInfo.cs b/MBTiles/UWP/Properties/AssemblyInfo.cs
index e55e5ede..57cd30f9 100644
--- a/MBTiles/UWP/Properties/AssemblyInfo.cs
+++ b/MBTiles/UWP/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
diff --git a/MBTiles/WPF/MBTiles.WPF.csproj b/MBTiles/WPF/MBTiles.WPF.csproj
index 55a6063a..0a955391 100644
--- a/MBTiles/WPF/MBTiles.WPF.csproj
+++ b/MBTiles/WPF/MBTiles.WPF.csproj
@@ -9,7 +9,7 @@
..\..\MapControl.snk
false
XAML Map Control
- 5.0.1
+ 5.1.0
MBTiles Support Library for XAML Map Control
Clemens Fischer
Copyright © 2020 Clemens Fischer
diff --git a/MapControl/Shared/MapProjection.cs b/MapControl/Shared/MapProjection.cs
index cfe7eabb..b961983a 100644
--- a/MapControl/Shared/MapProjection.cs
+++ b/MapControl/Shared/MapProjection.cs
@@ -61,7 +61,7 @@ namespace MapControl
///
public virtual Vector GetRelativeScale(Location location)
{
- return new Vector(1, 1);
+ return new Vector(1d, 1d);
}
///
diff --git a/MapControl/Shared/MapTileLayer.cs b/MapControl/Shared/MapTileLayer.cs
index 82833686..e471c041 100644
--- a/MapControl/Shared/MapTileLayer.cs
+++ b/MapControl/Shared/MapTileLayer.cs
@@ -23,7 +23,7 @@ namespace MapControl
{
public const int TileSize = 256;
- public static readonly Point TileMatrixTopLeft = new Point(
+ public static readonly Point MapTopLeft = new Point(
-180d * MapProjection.Wgs84MetersPerDegree, 180d * MapProjection.Wgs84MetersPerDegree);
///
@@ -114,8 +114,8 @@ namespace MapControl
var tileMatrixScale = ViewTransform.ZoomLevelToScale(TileMatrix.ZoomLevel);
- ((MatrixTransform)RenderTransform).Matrix = ParentMap.ViewTransform.GetTileLayerTransform(
- tileMatrixScale, TileMatrixTopLeft, tileMatrixOrigin);
+ ((MatrixTransform)RenderTransform).Matrix =
+ ParentMap.ViewTransform.GetTileLayerTransform(tileMatrixScale, MapTopLeft, tileMatrixOrigin);
}
private bool SetTileMatrix()
@@ -126,15 +126,14 @@ namespace MapControl
// bounds in tile pixels from view size
//
- var tileBounds = ParentMap.ViewTransform.GetTileMatrixBounds(
- tileMatrixScale, TileMatrixTopLeft, ParentMap.RenderSize);
+ var bounds = ParentMap.ViewTransform.GetTileMatrixBounds(tileMatrixScale, MapTopLeft, ParentMap.RenderSize);
// tile column and row index bounds
//
- var xMin = (int)Math.Floor(tileBounds.X / TileSize);
- var yMin = (int)Math.Floor(tileBounds.Y / TileSize);
- var xMax = (int)Math.Floor((tileBounds.X + tileBounds.Width) / TileSize);
- var yMax = (int)Math.Floor((tileBounds.Y + tileBounds.Height) / TileSize);
+ var xMin = (int)Math.Floor(bounds.X / TileSize);
+ var yMin = (int)Math.Floor(bounds.Y / TileSize);
+ var xMax = (int)Math.Floor((bounds.X + bounds.Width) / TileSize);
+ var yMax = (int)Math.Floor((bounds.Y + bounds.Height) / TileSize);
if (TileMatrix != null &&
TileMatrix.ZoomLevel == tileMatrixZoomLevel &&
diff --git a/MapControl/Shared/WorldMercatorProjection.cs b/MapControl/Shared/WorldMercatorProjection.cs
index 564a3238..6d7aaf8e 100644
--- a/MapControl/Shared/WorldMercatorProjection.cs
+++ b/MapControl/Shared/WorldMercatorProjection.cs
@@ -15,8 +15,8 @@ namespace MapControl
///
public class WorldMercatorProjection : MapProjection
{
- public static double ConvergenceTolerance = 1e-6;
- public static int MaxIterations = 10;
+ public static double ConvergenceTolerance { get; set; } = 1e-6;
+ public static int MaxIterations { get; set; } = 10;
private static readonly double maxLatitude = YToLatitude(180d);
@@ -72,8 +72,7 @@ namespace MapControl
var lat = latitude * Math.PI / 180d;
- return Math.Log(Math.Tan(lat / 2d + Math.PI / 4d)
- * ConformalFactor(lat)) * 180d / Math.PI; // p.44 (7-7)
+ return Math.Log(Math.Tan(lat / 2d + Math.PI / 4d) * ConformalFactor(lat)) * 180d / Math.PI; // p.44 (7-7)
}
public static double YToLatitude(double y)
diff --git a/MapControl/UWP/Properties/AssemblyInfo.cs b/MapControl/UWP/Properties/AssemblyInfo.cs
index 07c4a39b..27a939cf 100644
--- a/MapControl/UWP/Properties/AssemblyInfo.cs
+++ b/MapControl/UWP/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
diff --git a/MapControl/WPF/MapControl.WPF.csproj b/MapControl/WPF/MapControl.WPF.csproj
index 5c555721..7f4b95c5 100644
--- a/MapControl/WPF/MapControl.WPF.csproj
+++ b/MapControl/WPF/MapControl.WPF.csproj
@@ -9,7 +9,7 @@
..\..\MapControl.snk
false
XAML Map Control
- 5.0.1
+ 5.1.0
XAML Map Control Library
Clemens Fischer
Copyright © 2020 Clemens Fischer
diff --git a/MapImages/UWP/Properties/AssemblyInfo.cs b/MapImages/UWP/Properties/AssemblyInfo.cs
index 27112e38..53127321 100644
--- a/MapImages/UWP/Properties/AssemblyInfo.cs
+++ b/MapImages/UWP/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
diff --git a/MapImages/WPF/MapImages.WPF.csproj b/MapImages/WPF/MapImages.WPF.csproj
index 60895272..d62e2bf3 100644
--- a/MapImages/WPF/MapImages.WPF.csproj
+++ b/MapImages/WPF/MapImages.WPF.csproj
@@ -9,7 +9,7 @@
..\..\MapControl.snk
false
XAML Map Control
- 5.0.1
+ 5.1.0
Image Support Library for XAML Map Control
Clemens Fischer
Copyright © 2020 Clemens Fischer
diff --git a/MapProjections/UWP/Properties/AssemblyInfo.cs b/MapProjections/UWP/Properties/AssemblyInfo.cs
index 44cb5a09..4e7f901c 100644
--- a/MapProjections/UWP/Properties/AssemblyInfo.cs
+++ b/MapProjections/UWP/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
diff --git a/MapProjections/WPF/MapProjections.WPF.csproj b/MapProjections/WPF/MapProjections.WPF.csproj
index 9d81b562..f1166edd 100644
--- a/MapProjections/WPF/MapProjections.WPF.csproj
+++ b/MapProjections/WPF/MapProjections.WPF.csproj
@@ -9,7 +9,7 @@
..\..\MapControl.snk
false
XAML Map Control
- 5.0.1
+ 5.1.0
Map Projections Library for XAML Map Control
Clemens Fischer
Copyright © 2020 Clemens Fischer
diff --git a/SQLiteCache/UWP/Properties/AssemblyInfo.cs b/SQLiteCache/UWP/Properties/AssemblyInfo.cs
index 0609858f..77cc58bd 100644
--- a/SQLiteCache/UWP/Properties/AssemblyInfo.cs
+++ b/SQLiteCache/UWP/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
diff --git a/SQLiteCache/WPF/SQLiteCache.WPF.csproj b/SQLiteCache/WPF/SQLiteCache.WPF.csproj
index a35322d3..63e74731 100644
--- a/SQLiteCache/WPF/SQLiteCache.WPF.csproj
+++ b/SQLiteCache/WPF/SQLiteCache.WPF.csproj
@@ -9,7 +9,7 @@
..\..\MapControl.snk
false
XAML Map Control
- 5.0.1
+ 5.1.0
ObjectCache implementation based on SQLite
Clemens Fischer
Copyright © 2020 Clemens Fischer
diff --git a/SampleApps/UniversalApp/Properties/AssemblyInfo.cs b/SampleApps/UniversalApp/Properties/AssemblyInfo.cs
index 853495f2..40950534 100644
--- a/SampleApps/UniversalApp/Properties/AssemblyInfo.cs
+++ b/SampleApps/UniversalApp/Properties/AssemblyInfo.cs
@@ -8,7 +8,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCopyright("Copyright © 2020 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("5.0.1")]
-[assembly: AssemblyFileVersion("5.0.1")]
+[assembly: AssemblyVersion("5.1.0")]
+[assembly: AssemblyFileVersion("5.1.0")]
[assembly: AssemblyConfiguration("")]
[assembly: ComVisible(false)]
diff --git a/SampleApps/WpfApplication/WpfApplication.csproj b/SampleApps/WpfApplication/WpfApplication.csproj
index 7f323b29..c8569877 100644
--- a/SampleApps/WpfApplication/WpfApplication.csproj
+++ b/SampleApps/WpfApplication/WpfApplication.csproj
@@ -6,7 +6,7 @@
true
WpfApplication
XAML Map Control
- 5.0.1
+ 5.1.0
XAML Map Control WPF Sample Application
Clemens Fischer
Copyright © 2020 Clemens Fischer