Skip to content

Commit b0e6b60

Browse files
authored
Use latest map renderer for Android Google Maps (#29007)
* Use latest map renderer for Android Google Maps * Revert "Use latest map renderer for Android Google Maps" This reverts commit 66494aa. * Move use latest renderer to UseMauiMaps
1 parent 685914d commit b0e6b60

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Controls/Maps/src/AppHostBuilderExtensions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using Microsoft.Maui.Controls.Maps;
53
using Microsoft.Maui.Handlers;
64
using Microsoft.Maui.Hosting;
@@ -40,12 +38,12 @@ public static MauiAppBuilder UseMauiMaps(this MauiAppBuilder builder)
4038
.OnCreate((a, b) =>
4139
{
4240

43-
Microsoft.Maui.Maps.Handlers.MapHandler.Bundle = b;
41+
MapHandler.Bundle = b;
4442
if (GoogleApiAvailability.Instance.IsGooglePlayServicesAvailable(a) == ConnectionResult.Success)
4543
{
4644
try
4745
{
48-
MapsInitializer.Initialize(a);
46+
MapsInitializer.Initialize(a, MapsInitializer.Renderer.Latest, null);
4947
}
5048
catch (Exception e)
5149
{

0 commit comments

Comments
 (0)