I'm experiencing two issues with the Directions widget of the JS API:
The attached screenshots show the behavior. You can reproduce the issue by using the sample at https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_directions_basic:
The JS API documentation says:
esriResultsViewFullRoute | Class assigned to the 'Zoom to full route' button. /*Change the color of the Zoom to full route text*/ .simpleDirections .esriResultsViewFullRoute{ color:#999; } |
I’d say this proves that the button is not intended to be missing. odoe any idea?
Solved! Go to Solution.
In the meantime, I've opened up a support case and the missing button has become an enhancement request.
ENH-000106066 : Add the "ZOOM TO FULL ROUTE" option back to the Directions widget.
BUG-000106065 : When using the Directions widget if the user adds stops by clicking on the map the map does not zoom to the extent of the route automatically.
Niklas,
I have looked through all the html elements to see if the zoom button was just set to not display, but it just doesn't exist in the html. So it seems like the docs may have not been updated to reflect a change to do away with this button in lieu of the get directions button zooming to the full route.
Yeah, that's possible.. but I actually hope that they've lost the button by accident and that it will be included again.
In the meantime, I've opened up a support case and the missing button has become an enhancement request.
ENH-000106066 : Add the "ZOOM TO FULL ROUTE" option back to the Directions widget.
BUG-000106065 : When using the Directions widget if the user adds stops by clicking on the map the map does not zoom to the extent of the route automatically.