diff --git a/MapControl/Avalonia/MapControl.Avalonia.csproj b/MapControl/Avalonia/MapControl.Avalonia.csproj index 6b26e89b..ea0e446c 100644 --- a/MapControl/Avalonia/MapControl.Avalonia.csproj +++ b/MapControl/Avalonia/MapControl.Avalonia.csproj @@ -17,34 +17,24 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/MapControl/Shared/BingMapsTileLayer.cs b/MapControl/Shared/BingMapsTileLayer.cs index b7334dd4..7dcf21c0 100644 --- a/MapControl/Shared/BingMapsTileLayer.cs +++ b/MapControl/Shared/BingMapsTileLayer.cs @@ -13,6 +13,8 @@ using System.Windows; using Windows.UI.Xaml; #elif WINUI using Microsoft.UI.Xaml; +#elif AVALONIA +using Avalonia.Interactivity; #endif namespace MapControl diff --git a/MapControl/Shared/BoundingBoxTileSource.cs b/MapControl/Shared/BoundingBoxTileSource.cs index 1444db03..eb99e80d 100644 --- a/MapControl/Shared/BoundingBoxTileSource.cs +++ b/MapControl/Shared/BoundingBoxTileSource.cs @@ -11,6 +11,8 @@ using System.Windows.Media; using Windows.UI.Xaml.Media; #elif WINUI using Microsoft.UI.Xaml.Media; +#elif AVALONIA +using ImageSource = Avalonia.Media.IImage; #endif namespace MapControl diff --git a/MapControl/WPF/Timer.WPF.cs b/MapControl/Shared/Timer.cs similarity index 100% rename from MapControl/WPF/Timer.WPF.cs rename to MapControl/Shared/Timer.cs diff --git a/MapControl/WPF/TypeConverters.WPF.cs b/MapControl/Shared/TypeConverters.cs similarity index 100% rename from MapControl/WPF/TypeConverters.WPF.cs rename to MapControl/Shared/TypeConverters.cs diff --git a/MapControl/UWP/MapControl.UWP.csproj b/MapControl/UWP/MapControl.UWP.csproj index d1e71c09..fd9a25a5 100644 --- a/MapControl/UWP/MapControl.UWP.csproj +++ b/MapControl/UWP/MapControl.UWP.csproj @@ -179,6 +179,9 @@ TileSource.cs + + Timer.cs + TransverseMercatorProjection.cs @@ -275,9 +278,6 @@ Tile.WinUI.cs - - Timer.WPF.cs - diff --git a/MapControl/WinUI/MapControl.WinUI.csproj b/MapControl/WinUI/MapControl.WinUI.csproj index f4fe7c27..70671a29 100644 --- a/MapControl/WinUI/MapControl.WinUI.csproj +++ b/MapControl/WinUI/MapControl.WinUI.csproj @@ -26,6 +26,11 @@ + + + + +