WABD Get Direction in Popup

03-02-2016 08:22 AM
Occasional Contributor

Has anyone found
a way to enable the Get Directions option in the popup of features when the
layer is inside of WAB? In the web map when I click the popup I have an option
'Get Directions', but when I add this same map to a WAB project I loose that

0 Kudos
1 Reply
MVP Esteemed Contributor


   After some looking into this the AGOL viewer is able to do this because is guaranteed to have the directions widget enabled and thus can have this link to open the directions widget and add the selected feature to the directions widget. The directions widget can take a Point, lat and lon, or a string address. To make this work with WAB you would have to ensure that the directions widget was added to the app and then call the widgets "this._dijitDirections.addStop(theselectedFeaturesPoint);". So to answer your question no I have not tried to add this functionality into WAB and no it should not just work because it does in the AGOL map viewer.

0 Kudos