Map pins are not moving by changing their lat, lon on android. Does anyone knows how to do it elegantly? How to call setposition android method on the pin?
Maybe remove the pin, change the location property, then add it back to the map.
Generally speaking pins are places. Buildings tend to not move often. So I'd bet that nobody considered making the location a binding property that would be observed and watched for changes at runtime.
Answers
Maybe remove the pin, change the location property, then add it back to the map.
Generally speaking pins are places. Buildings tend to not move often. So I'd bet that nobody considered making the location a binding property that would be observed and watched for changes at runtime.
Pins.Remove(pin) doesn't work for android either. Only Pins.Clear works.
https://forums.xamarin.com/discussion/71622/problems-removing-individual-pins-in-xamarin-forms-maps
I've got an issue in for this: https://github.com/xamarin/Xamarin.Forms/issues/2121
@JoeManke
Thank you. This would help.