Skip to content

Instantly share code, notes, and snippets.

@pictos
Created November 23, 2017 14:59
Show Gist options
  • Save pictos/d35f6b52ad2c7ab49591c10793da5907 to your computer and use it in GitHub Desktop.
Save pictos/d35f6b52ad2c7ab49591c10793da5907 to your computer and use it in GitHub Desktop.
using RouteMap.ViewModels;
using Xamarin.Forms;
using Xamarin.Forms.Maps;
using Xamarin.Forms.Xaml;
namespace RouteMap.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MapaPage : ContentPage
{
public MapaPage()
{
InitializeComponent();
BindingContext = new MapaViewModel();
MapaViewModel.myMap = MyMap;
MyMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(-19.6303, -43.8983), Distance.FromKilometers(1.0)));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment