Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active September 28, 2017 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/0c583c01ea9b6869f907fe408a722b2f to your computer and use it in GitHub Desktop.
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
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