Is there a function to get the closest point on a shape’s edge from another point? I looked at .GetClosestPointTo(), but that returns null if the shape is a polygon and the target point is inside/intersects. It’s fine if the target point is outside of the polygon.
For some context, I’m letting users move shapes in the edit layer by clicking and the shape moves to click point. However, they want to keep the click-on-edge to add a vertex built-in functionality.
Also, I looked at maybe using the EditOverlay’s VertexAdding and VertexAdded events, but they fire off even when a vertex is not added.
Using v13.1.2