Select to view content in your preferred language

Retrieving route location via mouse click - how?

652
2
07-05-2012 01:30 PM
SteveCole
Honored Contributor
Not sure what the best way to accomplish this via the API. Let's say I have a routed layer of roads or stream network. I want to return the milepost location (or River Mile) at the map location that the user clicks on.

Can I extract this information using the Identify task or do I need to use the esri.tasks.RouteTask option? The code snippits and examples seem more focused on connecting two locations together on a network rather than identifying a single location.

Thanks!
Steve
0 Kudos
2 Replies
StephenLead
Honored Contributor
I want to return the milepost location (or River Mile) at the map location that the user clicks on.

Can I extract this information using the Identify task or do I need to use the esri.tasks.RouteTask option?


Hi Steve,

I'd assume that you need to use RouteTask. IdentifyTask is more like the Identify tool in ArcMap, in that it returns the value of a feature found at that XY location, rather than using a linear reference.

Steve
0 Kudos