Hello again, ThinkGeo Team!
In parallel with the main question about the memory consumption would love to get an answer for another important issue, but I think everything is a lot easier. :)
I'll try to describe the problem. So, I have a Overlay,which contains InMemoryFeatureLayer with Feature-s (green color in the image).
Then I have my own InteractiveOverlay, which I add to the WpfMap.InteractiveOverlays property. In my bed I realize the creation of the landfill. The function draw is as follows:
protected override void DrawTileCore(GeoCanvas geoCanvas)
{
geoCanvas.DrawArea(CurrentTracker.CurrentFeature,
new GeoPen(GeoColor.SimpleColors.Red),
new GeoSolidBrush(new GeoColor(50, 255, 0, 0),
DrawingLevel.LevelOne);
}
Everything seems to be right and good, the rectangle is drawn, but not in the order that I need. First, draw all the polygons, and have them draw what I draw now. If I inherit a layer of TrackInteractiveOverlay polygon, which I create, will be drawn at the top level. And when just from InteractiveOverlay, it is not at the top level (under the Overlay, which contains InMemoryFeatureLayer). How can I change it?
How do I make my InteractiveOverlay, which I put into the collection WpfMap.InteractiveOverlays (he is in a position that is WpfMap.InteractiveOverlays[0]), drawing at the top level? Thank you very much! I hope it is clear explained :)
P.S. Picture1 shows a situation in which I inherited from class InteractiveOverlay, as in picture 2 so that I inherited from class TrackInteractiveOverlay.
P.P.S. in the post
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/39/aft/9856/afv/topic/Default.aspx
You are offered the following items to be taken:
LayerOverlay layerOverlay = new LayerOverlay();
Canvas.SetZIndex(layerOverlay.OverlayCanvas, 0);
If I'm in my code, write it as a solution (I have only the inverse problem):
Map.InteractiveOverlays.Add("GeoInteractiveOverlay", geoInteractiveOverlay);
Canvas.SetZIndex(Map.InteractiveOverlays[0].OverlayCanvas, 1000);
That's all good. But you wrote there, that this solution is not very good. Can you explain in detail why it was not good and what I might face in the future, or offer any other solution to my problem? Thank you very much!