public void RefreshMarkers(List<MarkerInfo> markers) { _Markers.ForEach(mmi => { mmi.Map = null; }); _Markers = markers.Select(m => { MappedMarkerInfo locationMarker = new MappedMarkerInfo(m); locationMarker.Map = _MapView; return locationMarker; }).ToList(); }
public void RefreshMarkers(List <MarkerInfo> markers) { _Markers.ForEach(mmi => { mmi.Map = null; }); _Markers = markers.Select(m => { MappedMarkerInfo locationMarker = new MappedMarkerInfo(m); locationMarker.Map = _MapView; return(locationMarker); }).ToList(); }