How can I accomplish snapping-functionality for the EditorWidget resp. Editor-Class? Is it possible to use snapping without editing eg. retrieving coordinates of snapped featurevertices shown by the user?
Here are some infos, which I found out for myself.
Snapping-functionality has at least two preconditions: 1) The GraphicsLayer resp. FeatureLayer which should be snapped to must have the property IsHitTestVisible="True". 2) You have to know the key, which activates the snapmode. The Default is Left-Ctrl. Use Editor.SetSnapKey to change this.
Snapping is also possible without editing a FeatureLayer, eg. drawing geometries on a draw-object while snapping on GraphicsLayer and FeatuerLayer.
I am testing Runtime for WPF and referring to the snapping, I have seen that it work only to vertices and there is not nearest snapping. The snapping (holding left control) do not work at the first click, working after second click only. It is not good, because I can need to start a polyline from another for example. I also have seen that the snapping do not work to point features.
Do you or someone have tested and seen this? There is some solution for this?