Hello Fellow Xamarin Developers
I am having a problem (Once again )
I am trying to show a simple map on an Android application but It the map tiles never load only google label and zoom in and out buttons
Main Activity
public class MainActivity : AndroidActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
Xamarin.Forms.Forms.Init(this, bundle);
Xamarin.FormsMaps.Init(this,bundle);
SetPage(App.GetMainPage());
}
}
the code for the maps View is as follows
public MainView()
{
var map = new Map(
MapSpan.FromCenterAndRadius(
new Position(37, -122), Distance.FromMiles(0.3)))
{
IsShowingUser = true,
HeightRequest = 100,
WidthRequest = 960,
VerticalOptions = LayoutOptions.FillAndExpand
};
var stack = new StackLayout { Spacing = 0 };
stack.Children.Add(map);
Content = stack;
}
Sir Manifest the google key value has been ommited
This isnt my first time with Maps using Xamarin but it is with Forms
if anyone can point out what Im doing wrong or if Im missing a step please do tell