What's the best way to draw a graphic that snaps to and traces a feature using the Javascript API?

363
0
03-12-2019 02:24 PM
BrianVan_Nostrand
New Contributor III

   I'm trying to put together a tool that will allow us to trace road features, painting a graphic on top of the features that will be used as a query envelope in subsequent analysis. Does anyone know a good way to set up a tracing tool that would both allow for snapping (I'm thinking of using the geometry engine "nearest vertex") and also override the provided drawing gestures so that the line would be rendered as the mouse is moved instead of requiring a series of clicks?

Am I totally off base?

0 Kudos
0 Replies