Reputation: 1297
I'm new to xamarin and working on basics to get the hang of it.
been following this tutorial: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/map
as can be seen below it looks like I'm able to request but I still have gray tiles. what could cause this? is something wrong with my api key?
public partial class MainPage : ContentPage
{
private StackLayout stackLayout = new StackLayout();
private Map map;
public MainPage()
{
InitializeComponent();
map = new Map(
MapSpan.FromCenterAndRadius(
new Position(35.184657, 33.353528), Distance.FromMiles(0.3)))
{
IsShowingUser = true,
HeightRequest = 100,
WidthRequest = 960,
VerticalOptions = LayoutOptions.FillAndExpand
};
stackLayout.VerticalOptions = LayoutOptions.FillAndExpand;
stackLayout.HorizontalOptions = LayoutOptions.FillAndExpand;
stackLayout.Children.Add(map);
Content = stackLayout;
}
Debug Output
04-17 09:36:29.242 E/GoogleCertificates( 3601): Failed to load
com.google.android.gms.googlecertificates
04-17 09:36:29.242 E/GoogleCertificates( 3601): qq: No acceptable module found. Local version is 0 and remote version is 0.
04-17 09:36:29.242 E/GoogleCertificates( 3601): at com.google.android.gms.dynamite.DynamiteModule.a(:com.google.android.gms.DynamiteModulesB@11509470:11)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at in.a(:com.google.android.gms.DynamiteModulesB@11509470:12)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at in.a(:com.google.android.gms.DynamiteModulesB@11509470:31)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at in.b(:com.google.android.gms.DynamiteModulesB@11509470:30)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at iy.a(:com.google.android.gms.DynamiteModulesB@11509470:35)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at iy.a(:com.google.android.gms.DynamiteModulesB@11509470:20)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at com.google.maps.api.android.lib6.impl.ev.a(:com.google.android.gms.DynamiteModulesB@11509470:143)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at com.google.maps.api.android.lib6.impl.fb.run(:com.google.android.gms.DynamiteModulesB@11509470:28)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
04-17 09:36:29.242 E/GoogleCertificates( 3601): at java.lang.Thread.run(Thread.java:761)
Upvotes: 1
Views: 827
Reputation: 421
Actually, I think that if your API key is bad you will have problems navigating to the map page. I ran into this a week or two ago. Look at the application output and you should see a message about "contacting google map server"
Upvotes: 2