Created
November 23, 2017 14:59
-
-
Save pictos/d35f6b52ad2c7ab49591c10793da5907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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