WABD Get Direction in Popup

1187
1
03-02-2016 08:22 AM
LarryPhelps
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
option.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Larry,

   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