O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating and implementing maps within your app

In this section, we will be taking a look at how to work with and integrate mapping capabilities for our TrackMyWalks application. We will learn how to add the NuGet package in Xamarin.Forms.Maps to our shared-code project.

The main purpose of the Xamarin.Forms.Maps control is to allow you to display a map inside your Xamarin.Forms application or within a ContentPage. You can see a map of your current location, add pin placeholders within the map, and also provide a route between two locations.

Let's take a look at how we can achieve this by following these steps:

  1. Right-click on the TrackMyWalks solution and choose the Add Packages... menu option, as shown in the following screenshot:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required