Select to view content in your preferred language

Use of SnappingManager in Custom Widget

874
1
09-27-2016 03:39 PM
JacobNosal
Deactivated User

I am trying to writing a WAB widget that will allow a user to click on a road (or another linear feature) and snap a marker symbol to that roadway. As the user moves the cursor, the marker should be placed at the point closest to the cursor on the road feature. I think that I should be able to do this with the SnappingManager, but have only seen this class used in the context of Measurement and other esri/dijits. Is the SnappingManager restricted to use in the esri/dijits?

Tags (1)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Jacob,

   The map object has a SnappingManager already so you would just utilize it. Attached is a simple widget that has drawing capabilities that will use snapping.

0 Kudos