Hello,
I create shapes on a map and assign data to the features based on database values. I can access these feature on mapclick (getting the closest shape to the click).
However, when I edit the shapes boundaries, I am not able to access these column values when I loop through all the features.
I am using the example in DrawEditShapes.aspx.
On Save:
LayerOverlay dynamicOverlay = (LayerOverlay)Map1.CustomOverlays["DynamicOverlay"];
InMemoryFeatureLayer shapeLayer = (InMemoryFeatureLayer)dynamicOverlay.Layers["shapeLayer"];
foreach (Feature feature in Map1.EditOverlay.Features)
{
if (!shapeLayer.InternalFeatures.Contains(feature.Id))
{
shapeLayer.InternalFeatures.Add(feature.Id, feature);
}
}
Map1.EditOverlay.Features.Clear();
Map1.EditOverlay.TrackMode = TrackMode.None;
dynamicOverlay.Redraw();
feature.columns.count is 0. Therefore for some reason I can't access the feature column values that I set. I need to be able to update the boundaries (wkt, wkb) of the shapes in the database. Any ideas?