Can I access the FeedbackLine when dragging a node in the GeometryEditor to display, for example, the current polyline length during the drag? Thanks
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 @DmitriyKolokolnikov - I know it's been quite some time since your original post, but I wanted to update here in case you or others reading this post - in the new 300.1 release of ArcGIS Maps for Native Apps you can now use the `InteractionPreviewChanged` event to get updates about the state of the geometry while a user is making changes - for example during the drag operation when moving a vertex, or while rotating, moving or scaling a geometry or part. You can read more about this and other new functionality in the release blog. Please do post back if you've got any feedback about the new event.
Actually my workaround of calculating it myself won't work in the scenario where snapping is being applied, because then the mouse position doesn't match up perfectly with the snapped end of the feedback line 😞I just started a new topic about this issue.
I also have a use case where getting the geometry of the feedback line would be useful. I guess I can calculate it myself from the mouse position to the current selected vertex, but it would be handy if it was more accessible somehow. I want to show the user a label with the length of the feedback line displayed as they're drawing (among other things). Any update on this as a feature enhancement request, i.e. is the request tracked somewhere?
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.
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.
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"
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.
Hi,
I think link to another thread could be helpful for you:
Solved: Add GeometryChanged event to the new GeometryEdito... - Esri Community
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.