We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Display google map in Xamarin.Forms SfMaps control

Description

This article describes how to show google map using ImageryLayer of the SfMaps control.

Solution:

You can show google map using ImageryLayer by overriding the GetUri method of imagery layer extension class on each platform’s (Xamarin.Android, Xamarin.iOS, and UWP) custom map renderer.

Step 1: Initialize the map extension class as shown in the following code snippet.

C#

 

Step 2: Override the GetUri method of imagery layer extension and pass the google uri link (any tile maps provider) with corresponding x, y, and zoom level as shown in the following code snippet.

C#

 

Step 3: Add the imagery layer extension class to layers collection of native map control by overriding the OnElementChanged method of each platform’s custom map renderer.

 

You can download the demo sample in this link.

Article ID: Published Date: Last Revised Date: Platform: Control:
8913 07/06/2018 07/06/2018 Xamarin.Forms SfMaps
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon