Tag : maps-in-xamarin-forms

Xamarin.Forms.Maps integration in WinPhone Project

Map is an external component which will be obtained from the Nuget Component store.

Integration of Maps requires some config changes from platform to platforms. I have targeted the WinPhone project configuration here. In the next blog, will point to other platforms.

Simple Steps

  • Add Xamarin.Forms.Map to every project in the solution
  • Call the FormMaps.Init() method in each project to initialize the map
  • Create the Map object with region co-ordinates
  • Add that Map object in a layout in the PCL/Shared project

nuget-XamarinFormsMaps

In the PCL/Shared project, Let’s add a new Content page and name it as MapPage.cs. Now time to add the below code to it.

Categories: Cross Platform Mobile App, CSharp, Visual Studio, Windows Phone, Xamarin

%d bloggers like this: