While we wait for the Pin Bindable feature is being added, I used this to add a Pin in a Map that is in a ListView. I use a Message. Simple and works until a Pin Bindable feature comes.
public class MapWithPin : Xamarin.Forms.GoogleMaps.Map
{
public MapWithPin(): base()
{
MessagingCenter.Subscribe<MyViewModel, Pin> (this, "pin", (sender,arg) => {
this.Pins.Add(arg);
});
}
}
Not a bug.
Awesome tool!!!!
While we wait for the Pin Bindable feature is being added, I used this to add a Pin in a Map that is in a ListView. I use a Message. Simple and works until a Pin Bindable feature comes.