Does the "zoom_to_selection" URL parameter support a search widget using a locator service? ... or, does the search widget have to be configured to search a feature layer?
If a locator service is NOT supported, are there plans to support this? We have several of our WAB apps where users make use of the "find?" URL parameter for zooming an app to a particular feature, and our search widget for those apps use a composite locator service so we don't have to publish or configure multiple feature layers.
Hi @mpboyle ,
This workflow should work with the current search widget:
1. Select the search widget
2. In the search widget settings, make sure General search options - Search result - Auto select the first result is checked
3. Go to the Action panel
4. Add a message action Record selection changes - Map - Zoom to
5. Enable Search URL in the General Panel - Manage URL Status
Please let me know if you have other questions.
Thanks,
Shengdi
Hi @ShengdiZhang ,
Thanks for pointing me in the right direction. For any future users, I referenced the "Search widget parameters" section of the Esri documentation below.
https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm