hi
i am making a simple map of pakistan.At first i used the custom data on the map by using customcolumnfetcheventargs property in web forms (mapsuite wed evaluation eddition). it worked well. now i am converting my app in mvc. now my question is that how can i use that custom colomn fetch property in mvc for using custom data like population on the map. ?
my code using web forms was as following.......
//page load event
provinceLayer.FeatureSource.CustomColumnFetch += new EventHandler<CustomColumnFetchEventArgs>(FeatureSource_CustomColumnFetch);
provinceLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.RequiredColumnNames.Add("Test");
//function
public void FeatureSource_CustomColumnFetch(object sender, CustomColumnFetchEventArgs e)
{
ShapeFileFeatureLayer provinceLayer = new ShapeFileFeatureLayer(@"C:\Users\ahsan\Desktop\shapefiles\PAK_adm1.shp");
provinceLayer.Open();
Feature feature = provinceLayer.FeatureSource.GetFeatureById(e.Id, ReturningColumnsType.AllColumns);
provinceLayer.Close();
string featureName = feature.ColumnValues["NAME_1"];
/* for (int i = 0; i < provinceNames.Count(); i++)
{
if (provinceNames == featureName)
{
e.ColumnValue = provincePopulation.ToString();
}
}*/
}
provide me some sample coding example if you can , beecause i really do not know how to proceed...
and i could not find any help regarding about my problem in your mvc samples and discussion forums.....
and reply me as soon as possible...
thanks
ahsan