I use ArcGIS API for Javascript to build app, now I built have a list of selections and map, I want to zoom on selected feature when select it.
my code same as this URL
You could watch for when the popup is visible, then zoom to the selected feature.
reactiveUtils.watch( () => view.popup.visible, () => { console.log(`Popup visible: ${visible}`); });
Edit:
Here is another possible solution
Solved: Zoom to selected feature using JavaScript - Esri Community
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.