xamarin.forms.maps

How to bind the position value of Xamarin.forms.Maps inside the ListView?

人走茶凉 提交于 2021-01-29 06:50:28
问题 I am using Xamarin.forms.Maps for showing the map in my project. The map is inside the ListView and I need to bind the coordinate positions to the map. Model Class: public class History { public double Latitude { get; set; } public double Longitude { get; set; } } Data adding part: historyList.Add(new History() { Latitude= -28.854930 ,Longitude= 151.166023 }); historyList.Add(new History() { Latitude = -28.853671, Longitude = 151.165712 }); historyList.Add(new History() { Latitude = -28