I'm using snapping in a web map for a move/rotate custom tool. According to the API documentation the default option is to set all feature and graphics layers in the map to be target snapping layers.
The snapping seems to work fine since the user is getting the X symbol over the vertices of the features when the pointer is close with the CTRL key pressed.
However when I capture the point coordinates on click, the value is not identical to the feature's vertex coordinate as I expected. There's a small difference and some variance in multiple clicks for the same vertex. For the tool I really need to have the same exact coordinate of the feature so the operation will no generate gaps in the layer.
I'm using ArcGIS API for JavaScript 3.7 and the drawEnd event (using esri.toolbars.Draw.POINT) to get the coordinate.
Is this the expected behaviour for the snapping (an approximation instead of the exact coordinate of the feature) ? Or is there a way to get what I want.