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. Image for the cookie policy date

need GoogleMap Type street using SfMaps

Hi,
I need google map api type street using SfMaps 
Please help

Regards,
Yogita

6 Replies

RS Ramya Soundar Rajan Syncfusion Team January 28, 2020 11:57 AM UTC

Hi Yogitha, 
 
You can add google maps in SfMaps control. Please refer the following Kb. 
 
 
Please find the following UG link for more information. 
 
 
Regards, 
Ramya 
  



YO Yogita January 29, 2020 06:06 AM UTC

Hi Ramya
 I have already used this Api I need Api for Google Street Map
Like Normal Xamarin Forms maps or Native map please provide ur support.

Regards,

Yogita


RS Ramya Soundar Rajan Syncfusion Team January 30, 2020 10:39 AM UTC

Hi Yogita, 
 
To display the google street map view, you can assign the given google map Url of “lyrs” value is “m” as shown in below code. 
 
        private void ImageryLayer_RequestTileUri(object sender, Syncfusion.SfMaps.XForms.TileUriArgs e) 
        { 
            var link = "http://mt1.google.com/vt/lyrs=m&x=" + e.X.ToString() + "&y=" + e.Y.ToString() + "&z=" + e.ZoomLevel.ToString(); 
            e.Uri = link;          
        } 
 
Likewise, you can change to the other view type by assigning the below layer value. 
  
h = roads only 
m = standard roadmap (street map) 
p = terrain 
r = somehow altered roadmap 
s = satellite only 
t = terrain only 
y = hybrid 
  
Please find the sample link from below location. 
  
  
Output Screenshot: