private async Task <string> GetMapMarkersFunction(IEnumerable <OrganizacionHeaderData> organizaciones) /*create the string js funtion and add the parameters*/ { return(await Task.Run(() => { return MapManager.CreateMarkersFunction(organizaciones.ToList()); })); }
private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) { ViewModel.LoadingMap = false; var organizacionesHelper = new List <OrganizacionHeaderData>() { Organizacion }; var markersFunctions = MapManager.CreateMarkersFunction(organizacionesHelper); Browser.ExecuteScriptAsync(markersFunctions); }