When a user picks a result in Search Widget, the map zooms to the selected feature and opens a pop-up. Is it possible to provide a link to other widgets (my current interest is to link Directions) as a possible option? It would be nice to have "Directions" link next to "Zoom to" link.
I am using web app builder linked from ArcGIS Online, but am willing to go for a developer edition... Is it possible to make this happen using WAB in ArcGIS Online? Any suggestion or a pointer is appreciated.
Solved! Go to Solution.
Thank you for your reply and the screen capture. You are correct that hosted WAB 'search widget' automatically shows Directions widget option!
I have three map services (parks layer and facilities layer as polygon, and address layer as point) in the Search Widget.
1. It seems only address layer gets the option of Directions widget even though it was not added as geocoding service.
2. Instead of showing address as a starting point in the Directions widget, it is placing X,Y coordinates (not very user friendly esp. since I am using State Plane coordinates).
I wonder if it is possible to use Directions widget even when a polygon feature is selected (I guess reverse geocoding will need to play a role in that case?).
Would it be also possible for Directions widget to use a selected field (such as place name or address field in the polygon layer)?
Again, any pointer to solve these additional problems are much appreciated.
Looking at the code it looks like the search widget has to return a point geometry for those menu options to be available. As far as your other questions I am not sure as I don't use the directions widget much at all.