Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

xamarin.forms.map

$
0
0
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.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>