Then, in GoogleMapScreen.cs, write the following code. Then, right-click on the Android project and go to properties. Install it in both, PCL and GoogleMapUsingXamarinForms.Droid, projects. Go to ‘Manage NuGet Packages For Solution’. In this project, we will use C# for both, design and coding.įirst of all, let’s create a folder named ‘Pages’ in Portable Class Library (PCL) and add a class named GoogleMapScreen.cs. And then, we will use the coordinates in the Google Maps to show the exact current location. First of all, we will see how to obtain the latitude and longitude using the mobile's GPS. So, let’s create a Xamarin.Forms project in Visual Studio under Visual C# and cross-platform, and name it as GoogleMapUsingXamarinForms. I will discuss here how to use Google Maps in Xamarin.Forms and customize it using custom renderer for further functionality. Google Maps Service is very popular in various enterprise-level mobile applications.
0 Comments
Leave a Reply. |