diff --git a/Microsoft.Maui.Packages-mac.slnf b/Microsoft.Maui.Packages-mac.slnf index 2662f1c3517c..00da180d62d0 100644 --- a/Microsoft.Maui.Packages-mac.slnf +++ b/Microsoft.Maui.Packages-mac.slnf @@ -13,6 +13,7 @@ "src\\Controls\\src\\Xaml.Design\\Controls.Xaml.Design.csproj", "src\\Controls\\src\\Xaml\\Controls.Xaml.csproj", "src\\Core\\src\\Core.csproj", + "src\\Core\\maps\\src\\Maps.csproj", "src\\Essentials\\src\\Essentials.csproj", "src\\Graphics\\src\\Graphics\\Graphics.csproj", "src\\Graphics\\src\\Graphics.Skia\\Graphics.Skia.csproj", diff --git a/Microsoft.Maui.Packages.slnf b/Microsoft.Maui.Packages.slnf index 1a51d3861ea8..68e1736d0a39 100644 --- a/Microsoft.Maui.Packages.slnf +++ b/Microsoft.Maui.Packages.slnf @@ -15,6 +15,7 @@ "src\\Controls\\src\\Xaml.Design\\Controls.Xaml.Design.csproj", "src\\Controls\\src\\Xaml\\Controls.Xaml.csproj", "src\\Core\\src\\Core.csproj", + "src\\Core\\maps\\src\\Maps.csproj", "src\\Graphics\\src\\Graphics\\Graphics.csproj", "src\\Graphics\\src\\Graphics.Skia\\Graphics.Skia.csproj", "src\\Graphics\\src\\Graphics.Win2D\\Graphics.Win2D.csproj", diff --git a/Microsoft.Maui.sln b/Microsoft.Maui.sln index 9b9b8c813d01..302b9785b694 100644 --- a/Microsoft.Maui.sln +++ b/Microsoft.Maui.sln @@ -204,6 +204,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SharedSource", "SharedSourc EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmarks.Droid", "src\Core\tests\Benchmarks.Droid\Benchmarks.Droid.csproj", "{5B56A734-D53C-4635-A53E-F889FCFCDD66}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maps", "src\Core\maps\src\Maps.csproj", "{E8728693-3537-4007-A4DB-9F9634548755}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Graphics", "Graphics", "{E4884871-4A1B-43BC-814F-E3D6E52B1673}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{42AB9AE1-631D-4AD4-85B7-910FF0940BDB}" @@ -544,6 +546,10 @@ Global {5B56A734-D53C-4635-A53E-F889FCFCDD66}.Release|Any CPU.ActiveCfg = Release|Any CPU {5B56A734-D53C-4635-A53E-F889FCFCDD66}.Release|Any CPU.Build.0 = Release|Any CPU {5B56A734-D53C-4635-A53E-F889FCFCDD66}.Release|Any CPU.Deploy.0 = Release|Any CPU + {E8728693-3537-4007-A4DB-9F9634548755}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E8728693-3537-4007-A4DB-9F9634548755}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E8728693-3537-4007-A4DB-9F9634548755}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E8728693-3537-4007-A4DB-9F9634548755}.Release|Any CPU.Build.0 = Release|Any CPU {CF056C95-51C4-4366-9D06-41D2B15EFEE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CF056C95-51C4-4366-9D06-41D2B15EFEE4}.Debug|Any CPU.Build.0 = Debug|Any CPU {CF056C95-51C4-4366-9D06-41D2B15EFEE4}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -724,6 +730,7 @@ Global {5FEA7500-0ACE-4C26-9A7B-2EB3958CBBC6} = {A9C514B9-1EE2-4A12-8E8A-CE16D87545C3} {4F2926C8-43AB-4328-A735-D9EAD699F81D} = {ED7F28E0-D0AF-417D-983D-3D874EEE8554} {5B56A734-D53C-4635-A53E-F889FCFCDD66} = {C564DDD6-DE79-45CD-88EA-3F690481572A} + {E8728693-3537-4007-A4DB-9F9634548755} = {E8AD265B-3C67-4640-AC58-A522F9FB3361} {42AB9AE1-631D-4AD4-85B7-910FF0940BDB} = {E4884871-4A1B-43BC-814F-E3D6E52B1673} {1BA0121E-0B83-4C8F-81BE-C293E7E35DCE} = {E4884871-4A1B-43BC-814F-E3D6E52B1673} {936C47A9-A7EA-4FBD-8733-CED1D4100E69} = {E4884871-4A1B-43BC-814F-E3D6E52B1673} diff --git a/_omnisharp.sln b/_omnisharp.sln index 5bdf0919dad6..945ac66ae337 100644 --- a/_omnisharp.sln +++ b/_omnisharp.sln @@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Controls", "Controls", "{45 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{E1082E26-D700-4127-9329-66D673FD2D55}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maui.Controls.Sample", "src\Controls\samples\Controls.Sample\Maui.Controls.Sample.csproj", "{B8DC1324-977C-46F1-B697-9064ADE6099A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maui.Controls.Sample", "src\Controls\samples\Controls.Sample\Maui.Controls.Sample.csproj", "{B8DC1324-977C-46F1-B697-9064ADE6099A}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Compatibility", "Compatibility", "{123AA89E-1638-4E0E-B828-B8F9F9F906A2}" EndProject @@ -92,6 +92,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.DeviceTests", "src\Cor EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Controls.Foldable", "src\Controls\Foldable\src\Controls.Foldable.csproj", "{F0A48792-ACD7-4B72-83EB-C56A70FA5A3A}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maps", "src\Core\maps\src\Maps.csproj", "{1C9F9D5A-2CF7-4ADB-A9F5-672ACC05B035}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -205,6 +207,10 @@ Global {F0A48792-ACD7-4B72-83EB-C56A70FA5A3A}.Debug|Any CPU.Build.0 = Debug|Any CPU {F0A48792-ACD7-4B72-83EB-C56A70FA5A3A}.Release|Any CPU.ActiveCfg = Release|Any CPU {F0A48792-ACD7-4B72-83EB-C56A70FA5A3A}.Release|Any CPU.Build.0 = Release|Any CPU + {1C9F9D5A-2CF7-4ADB-A9F5-672ACC05B035}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C9F9D5A-2CF7-4ADB-A9F5-672ACC05B035}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C9F9D5A-2CF7-4ADB-A9F5-672ACC05B035}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C9F9D5A-2CF7-4ADB-A9F5-672ACC05B035}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -247,6 +253,7 @@ Global {7BEF8AD2-3A1D-4920-9036-473B9A6D5B0D} = {FBA6A516-2B6A-48A9-B64F-B012114B9501} {50BCB5CD-DC2A-42AA-B921-D99B19625CE1} = {C564DDD6-DE79-45CD-88EA-3F690481572A} {F0A48792-ACD7-4B72-83EB-C56A70FA5A3A} = {50C758FE-4E10-409A-94F5-A75480960864} + {1C9F9D5A-2CF7-4ADB-A9F5-672ACC05B035} = {E8AD265B-3C67-4640-AC58-A522F9FB3361} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {0B8ABEAD-D2B5-4370-A187-62B5ABE4EE50} diff --git a/eng/Versions.props b/eng/Versions.props index c00b85d11002..c1da03b00efc 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -48,6 +48,8 @@ <_XamarinAndroidGlideVersion>4.13.2.1 <_XamarinAndroidXSecurityVersion>1.1.0-alpha03 <_XamarinGoogleCryptoTinkAndroidVersion>1.6.1.7 + + 117.0.0 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj b/src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj index 2de00769fdff..05ad55b47484 100644 --- a/src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj +++ b/src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj @@ -56,11 +56,13 @@ - + + + diff --git a/src/Controls/samples/Controls.Sample/MauiProgram.cs b/src/Controls/samples/Controls.Sample/MauiProgram.cs index f759d00e285e..fc4884c7c174 100644 --- a/src/Controls/samples/Controls.Sample/MauiProgram.cs +++ b/src/Controls/samples/Controls.Sample/MauiProgram.cs @@ -19,10 +19,16 @@ using Microsoft.Maui.Controls.Compatibility; using Microsoft.Maui.Controls.Compatibility.Hosting; + #if NET6_0_OR_GREATER using Microsoft.AspNetCore.Components.WebView.Maui; #endif +#if ANDROID +using Android.Gms.Common; +using Android.Gms.Maps; +#endif + namespace Maui.Controls.Sample { public class CustomButton : Button { } @@ -37,7 +43,9 @@ enum PageType { Main, Blazor, Shell, Template, FlyoutPage, TabbedPage } public static MauiApp CreateMauiApp() { var appBuilder = MauiApp.CreateBuilder(); - +#if __ANDROID__ || __IOS__ + appBuilder.UseMauiMaps(); +#endif appBuilder.UseMauiApp(); #if TIZEN appBuilder.UseMauiCompatibility(); diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/BasicMapGallery.xaml b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/BasicMapGallery.xaml new file mode 100644 index 000000000000..ead809e229e1 --- /dev/null +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/BasicMapGallery.xaml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/BasicMapGallery.xaml.cs b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/BasicMapGallery.xaml.cs new file mode 100644 index 000000000000..aab008f7a7c7 --- /dev/null +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/BasicMapGallery.xaml.cs @@ -0,0 +1,13 @@ +using Microsoft.Maui.Controls.Xaml; + +namespace Maui.Controls.Sample.Pages.MapsGalleries +{ + [XamlCompilation(XamlCompilationOptions.Compile)] + public partial class BasicMapGallery + { + public BasicMapGallery() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/CircleGallery.xaml b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/CircleGallery.xaml new file mode 100644 index 000000000000..7fef7c051984 --- /dev/null +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/CircleGallery.xaml @@ -0,0 +1,45 @@ + + + + + + + + + 37.79752 + -122.40183 + + + 0.01 + 0.01 + + + + + + + + + 37.79752 + -122.40183 + + + + + + + 250 + + + + + + + diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/CircleGallery.xaml.cs b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/CircleGallery.xaml.cs new file mode 100644 index 000000000000..402978a05d71 --- /dev/null +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/CircleGallery.xaml.cs @@ -0,0 +1,12 @@ +using Microsoft.Maui.Controls; + +namespace Maui.Controls.Sample.Pages.MapsGalleries +{ + public partial class CircleGallery : ContentPage + { + public CircleGallery() + { + InitializeComponent(); + } + } +} diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/MapPinsGallery.xaml b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/MapPinsGallery.xaml new file mode 100644 index 000000000000..5769bfd19634 --- /dev/null +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/MapPinsGallery.xaml @@ -0,0 +1,18 @@ + + + + + +