here's the codepen with an array of stops to try it:
As the screenshot shows, you can add the stops with 'dirs.addStops(stops)' and after it calculates the route, try removing all stops with 'dirs.removeStops()' or 'dirs.reset()'.
the error doesn't always happen on the first try.
Things I've tried:
- Add the stops as Points
- Add the stops as all Stops (no waypoints)
- Add the stops as Graphics
- Add the stops as an object with a graphic feature
- Add all stops, then all waypoints
Any pointers on how to solve this or work around it?
Thanks in advance.
Thank you for reporting this issue. It has be reproduced and will be addressed in 3.22.