laptop and a wrench

Bug

Directions widget loads stops out of order when working with multiple locations as input with addStops() method.

Last Published: October 24, 2018 ArcGIS API for JavaScript
Bug ID Number BUG-000115490
SubmittedJuly 19, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.25
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

Use provided workaround.

Workaround

Use the addStop() method and loop through the array of stops to add to widget one at a time. For example:stopsAdding = [stop1, stop2, stop3, etc];for (var i = 0; i <  stopsAdding.length; i++) {          directions.addStop(stopsAdding[i]);        };

Steps to Reproduce

Bug ID: BUG-000115490

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options