Hi Rohit,
Greetings from Syncfusion.
We can achieve the requirement by overriding the GetUri method in imagery layer as in the code snippet below.
[C#]
public class MainActivity : AppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
SfMaps maps = new SfMaps(this);
ImagerLayerExt layer = new ImagerLayerExt();
maps.Layers.Add(layer);
SetContentView(maps);
}
}
public class ImagerLayerExt:ImageryLayer
{
protected override string GetUri(int X, int Y, int Scale)
{
var link = "http://mt1.google.com/vt/lyrs=y&x=" + X.ToString()
+ "&y=" + Y.ToString() + "&z=" + Scale.ToString();
return link;
}
} |
Output:
Please let us know if you have any concerns.
Thanks,
Rachel.