Creating a view with a map

To start with, we will create a view with a simple map that is centered on the position of the user. Let's set this up by going through the following steps:

  1. In the MeTracker project, create a new folder called Views.
  2. In the Views folder, create a XAML-based ContentPage and name it MainView.

The Xamarin.Forms package has no map controls, but there is an official package from Microsoft and Xamarin that can be used to show maps in a Xamarin.Forms app. This package is called Xamarin.Forms.Maps, and we can install it from NuGet by following the steps below:

  1. Install Xamarin.Forms.Maps in the MeTracker, MeTracker.Android ...

Get Xamarin.Forms Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.