Select to view content in your preferred language

Snap point to roadway

926
2
05-10-2012 06:30 AM
HasnainYusufali
Emerging Contributor
Hi,

I have an app where a user has to select a point on a roadway.
At lower zoom levels, when the user clicks on the roadway, it looks fine.
However, after zooming in, you can see the point is off and not on the road.

Is there a way where I can snap the point to the roadway, at whatever zoom level the user clicks on the map?

Thanks.
Hasnain
0 Kudos
2 Replies
JMcNeil
Deactivated User
Is your application an editing app; Is your point layer a feature layer?  If yes then you just need to hold down the control key when dropping your point...this induces snapping.  You can see how it works with this example
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/ed_editing_widget.html

Jay
0 Kudos
HasnainYusufali
Emerging Contributor
Jay,
Thanks for the reply. I am not using the editor widget.
All I need from the point is the lat and lon.

I will try to see if I can switch to using the widget.
Hasnain
0 Kudos