I got a map with a list of pins and I'd like to highlight one of them programatically, simulating a click on it.
public MapViewModel(INavigationService navigationService, IApiAutostradeManagerFactory apiAutostradeFactory) : base(navigationService, apiAutostradeFactory)
{
Map = new Map
{
MapType = MapType.Street,
};
Map.PinClicked += Map_PinClicked;
}
private void Map_PinClicked(object sender, PinClickedEventArgs e)
{
Console.WriteLine("I clicked it!");
}
}
This event is raised correctly everytime i click on a pin, but i'd like to raise it directly from code. I'm using this this Map Library: https://github.com/amay077/Xamarin.Forms.GoogleMaps