Hello,
I have a problem on my application using MapSuite WebEdition.I have a prototype that deals with many CustomOverlay (BaseOverlay = true) in order to display background maps (Google Maps, Bing, Picture with workfile...). I can switch between these kind of maps.I also created another CustomOverlay (type LayerOverlay with BaseOverlay = false) that include an InMemoryFeatureLayer that will display shapes over the maps.
I wanted to create a shape and to transfer that polygon from EditOverlay to my InMemoryFeatureLayer. When I try to do the transfer using the following code, the shape doesn't appear on the screen (but the shape exists in the InMemoryFeatureLayer).
InMemoryFeatureLayer shapeLayer = (InMemoryFeatureLayer)((LayerOverlay)Session["ShapeOverlay"]).Layers[0];
foreach (Feature feature in Map1.EditOverlay.Features)
shapeLayer.InternalFeatures.Add(feature.Id, feature);
Map1.EditOverlay.Features.Clear();
((LayerOverlay)Session["ShapeOverlay"]).Redraw();
I want to know if it's possible to add shape to a InMemoryFeatureLayer inside a CustomOverlay. I try to use Background/DynamicOverlay to do my prototype but I did'nt find how to change backgroundOverlay easily.