Just so I’m clear about this, is there no way to drag features that have been added to an EditInteractiveOverlay, which is then added to the InteractiveOverlays collection on the map control? I would rather not have to try and fit everything into Map.EditOverlay since I have multiple overlays with different styles on them.
Drag from EditInteractiveOverlay
Hi Clay,
I’m not sure whether I was clear about your questions, I guess all the features in EditInteractiveoverlay can be dragged, but impossible for the features in InteractiveOverlays, but you can move them from InteractiveOverlay from EditInteractiveOverlay for drag. Maybe the problem for you is that all the features in EditOverlay has the same style, but your requirement is showing them in different styles? In that case, I guess you can configure the style of the EditShapesLayer of EditInteractiveOverlay. Just like giving the style to normal layers.
Hope it helps.
Johnny
Johnny,
I fixed my previous issue by moving the other set of features that I needed to drag into Map.EditOverlay. As I have a completely different set of styling in this overlay I don’t think that I’m going to be able to do that.
I’m not real clear about this either. The EditInteractiveOverlay that I’m trying to drag features on is a child of Map.InteractiveOverlays. I don’t understand what you mean by “you can move them from InteractiveOverlay from EditInteractiveOverlay for drag”. The overlay already exists in both.
Hi Clay,
Sorry for we misunderstood your scenario in last reply.
The ExtentInteractiveOverlay is the third element of the InteractiveOverlays collection by default, and it will stop interactiveoverlays behind it receiving mouse events. So the resolution is insert our EditInteractiveOverlay to position before ExtentInteractiveOverlay. Would you please try the code below:
EditInteractiveOverlay customEditInteractiveOverlay = new EditInteractiveOverlay();
customEditInteractiveOverlay.CalculateAllControlPoints();
wpfMap1.InteractiveOverlays.Insert(1, customEditInteractiveOverlay);
Hope this is helpful and any question please feel free to let us know.
Thank,