Answered by:
Route Summary clear issue

Question
-
Hi
We have used DirectionsManager Class to get direction. The direction is working fine and it display the route summary on div correctly at first time. We have button to get the direction based on address selected. When we get direction second time then it display route correctly but it append the summary twice to div. it did not clear the route summary.
Is there way to clear the previous route summary and then add latest summary.
Below is the sample screenshot of the issue.
Thanks!
Balasaheb
Friday, February 19, 2016 10:18 AM
Answers
-
I can't reproduce this. Are you creating a new instance of the directions manager by change? This would result in two route calculations and thus two instructions.
http://rbrundritt.wordpress.com
- Marked as answer by Balasaheb Molawade Monday, February 22, 2016 7:12 AM
Saturday, February 20, 2016 6:36 AM
All replies
-
Did you call clearDisplay or resetDirections before doing a second calculation?
http://rbrundritt.wordpress.com
- Proposed as answer by Ricky_Brundritt Friday, February 19, 2016 3:29 PM
Friday, February 19, 2016 3:27 PM -
Hi Ricky,
We called directionsManager.resetDirections() before doing a second calculation.
Thanks!
BalasahebSaturday, February 20, 2016 5:00 AM -
I can't reproduce this. Are you creating a new instance of the directions manager by change? This would result in two route calculations and thus two instructions.
http://rbrundritt.wordpress.com
- Marked as answer by Balasaheb Molawade Monday, February 22, 2016 7:12 AM
Saturday, February 20, 2016 6:36 AM -
Hi Ricky,
Thanks for your hint. i able to figure out and resolved the issue.
Thanks!
Balasaheb
Monday, February 22, 2016 7:12 AM