xamarin.forms.map

binbin.9006binbin.9006 CNMember ✭✭
public class App : Application
{
    public App ()
    {
        // The root page of your application
        var map = new Map (MapSpan.FromCenterAndRadius (new Position (37, -122), Distance.FromMiles (10)));

        var pin = new Pin () {
            Position = new Position (37, -122),
            Label = "Some Pin!"
        };
        map.Pins.Add (pin);

        var cp = new ContentPage { 
            Content = map, 
        };          
        MainPage = cp;
    }

    protected override void OnStart ()
    {
        // Handle when your app starts
    }

    protected override void OnSleep ()
    {
        // Handle when your app sleeps
    }

    protected override void OnResume ()
    {
        // Handle when your app resumes
    }
}

error
Could not load file or assembly 'Xamarin.Forms.Maps, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Posts

  • PaulDistonPaulDiston USUniversity ✭✭✭✭

    Hi,

    Have you added the Xamarin.Forms.Maps NuGet package to your project?

    Thanks

    Paul Diston

  • binbin.9006binbin.9006 CNMember ✭✭

    Specifies how the map text language is English, now, I want to Chinese

Sign In or Register to comment.