Last active
September 28, 2017 15:35
-
-
Save juucustodio/0c583c01ea9b6869f907fe408a722b2f to your computer and use it in GitHub Desktop.
Demo de utilização de Mapa em aplicações Xamarin.Forms http://julianocustodio.com/maps-xamarin-forms
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 Xamarin.Forms; | |
using Xamarin.Forms.Maps; | |
namespace DemoMaps | |
{ | |
public partial class MainPage : ContentPage | |
{ | |
public MainPage() | |
{ | |
InitializeComponent(); | |
Mapa.MoveToRegion(MapSpan.FromCenterAndRadius( | |
new Position(-23.4859591, -47.4420192), | |
Distance.FromMiles(0.5))); | |
var pin = new Pin | |
{ | |
Type = PinType.Place, | |
Position = new Position(-23.4859591, -47.4420192), | |
Label = "Demo Maps", | |
Address = "www.julianocustodio.com", | |
}; | |
Mapa.Pins.Add(pin); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment