In mappoint you can click on the route to select it and then click a point on the route and drag the mouse to a location on the map and it recalculates the route to go via this point. However I have added various pushpins to the map and if the user drags the mouse to one of these pushpins I want it to add the pushpin to the route instead of the place on the map.
The only way I can think of achieving this is in the RouteAfterCalculate event to scan the waypoints on the routine and then for any that I don't recognise as being associated with a pushpin I work out the nearest pushpin to this waypoint and substitute the pushpin for the existing waypoint.
Basically I have a map of pushpins that represent orders and a route which represents the orders currently on a load and if they click and the drag the route to go via an order not currently on the route I want to place that order on the route. I know you can simply click the pushpin and then add it to the route but a user of ours wants to know if we can do it the way I have explained above.
Is there any better solution to what I have proposed?