Can I access the FeedbackLine when dragging a node in the GeometryEditor to display, for example, the current polyline length during the drag? Thanks
Solved! Go to Solution.
Hi @DmitriyKolokolnikov,
Thank you for your question. Currently you cannot access the FeedbackLine length during a drag action, as you've mentioned it is only possible to retrieve the length after a subsequent vertex has been placed.
I'll make a note of this as a potential enhancement.
Hi,
I think link to another thread could be helpful for you:
Solved: Add GeometryChanged event to the new GeometryEdito... - Esri Community
Thank you for the quick response. Unfortunately, this is not quite what I need. I need to obtain the geometry during the process of dragging a vertex. It seems that currently it’s only possible to get the geometry at the end of the dragging, i.e., after releasing the mouse.
Have you read blog about migrating from SketchEditor -> GeometryEditor inside the thread I mentioned above. Look at the part "Asynchronous start task with geometry result"
Yes, I have read that. I can get the geometry, but only after the node dragging is complete. However, I need to get it during the dragging.
If you need to get it during dragging you need to listen for PropertyChanged event as in sample from thread:
mapView.GeometryEditor.PropertyChanged += (s, e) =>
{
if (e.PropertyName == nameof(mapView.GeometryEditor.Geometry))
{
// Geometry has changed
}
};
The PropertyChanged for the GeometryEditor.Geometry property is triggered only after the vertex dragging is completed, i.e., after the mouse button is released.
Hi @DmitriyKolokolnikov,
Thank you for your question. Currently you cannot access the FeedbackLine length during a drag action, as you've mentioned it is only possible to retrieve the length after a subsequent vertex has been placed.
I'll make a note of this as a potential enhancement.
I'd like to register support for this as an enhancement. It sounds like OP and I have similar use cases where we would like to provide continuous feedback (length, area, etc.) about the interim geometry before a vertex is actually placed by the user.