Select to view content in your preferred language

Removing solved route from display

3782
0
09-16-2014 06:06 AM
HaniDraidi
Frequent Contributor

Hello all,

I made a geoprocessing tool that finds the shortest route between two stops (entered by user) on a road network. Then, published it as geoprocessing service to be used in an ArcGIS viewer for Silverlight App.

On the web, when finding the shortest route between two stops, the route is added to the map. Then when finding another route, the new route appears on the map and the first one stills. And when finding more routes, the previous routes are kept. How can I change this behavior so when a new route is found the previous one is removed from the map? This is shown below with screenshots.

Thank you!

1- Model

Clip_545.jpg

2- First Route

Clip_546.jpg

3- Second Route

Clip_547.jpg

4- Third Route

Clip_548.jpg

0 Kudos
0 Replies