Dear Sir,
I am trying to draw different shapes on the map which i can do using:
Map1.EditOverlay.TrackMode = TrackMode.Circle;
now, i have to problems:
First of all, i use CustomOverlays, which mean that i cant use some code like this:
//InMemoryFeatureLayer shapeLayer = (InMemoryFeatureLayer)Map1.DynamicOverlay.Layers["shapeLayer"];
//foreach (Feature feature in Map1.EditOverlay.Features)
//{
// shapeLayer.InternalFeatures.Add(feature.Id, feature);
//}
//Map1.EditOverlay.Features.Clear();
//Map1.DynamicOverlay.Redraw();
this is my first question, how can i apply the same code using CustomOverlays not dynamic.
second question is how can i read the actual center point of circle and the readius of it to store it to database, and how can i draw it again in the form_load if i have x,y and radius.
the same question with Polygon also.
Thanks,