Hello again,
I have my Map in an update Panel. I have a custom FeatureCache, FeatureSource and Feature Layer. I added some column values and custome symbology. It compiles and run but now I want to change the values in the Features (the column values)
I just created a radio button list to select some alarm values and in the code below, I get the collection of features for the layer and I iterate through the feature collection until I hit a specific column value. I am not trying anything special. I am just trying to clear the GeoCache... and the GeoCache does clear.. I have verified that with breakpoints... But the map does not update. I do an update on the panel but the map doesnt refresh.
As I was saying, I have debugged this code, it returns the correct collection of features and it clears tehm from the GeoCache. I have verified that.
I think I am missing something simple on how to make the Map refresh. Any help as usually is greatly appreciate. I think my evaluation is going well and this will all work out but I need to get a prototype going to approve the purchase.
see Code below
else if (rblStn1.SelectedValue == "Level2")
{
EyascoFeatureCache test = new EyascoFeatureCache();
Collection<Feature> fc = ((EyascoFeatureLayer)((LayerOverlay)Map1.CustomOverlays[1]).Layers[1]).FeatureSource.GeoCache.GetFeatures(test.getBounds());
foreach (Feature f in fc)
{
if (f.ColumnValues["stnID"] == "1")
{
((EyascoFeatureLayer)((LayerOverlay)Map1.CustomOverlays[1]).Layers[1]).FeatureSource.GeoCache.Clear();
}
}
UpdatePanel1.Update();
}