Use Webmap Popup in Search Widget

04-08-2021 07:02 PM
New Contributor III

I would like to use the popup I created in my AGOL webmap when using the Search widget.   I have not been able to find any examples where I can set the popupTemplate to the same template as when you lick on a feature in the map.





Tags (1)
0 Kudos
1 Reply
MVP Regular Contributor

Edit: Oops, didn't notice this was for the javascript API. I'm leavingn the comment, maybe it helps someone...

If I understood you correctly, you want to search a layer in the search widget, then jump to the found feature and open its popup.

If you work in a web map, you have to make the layer searchable in the map settings. Follow these instructions: 

If you work in a web app, you have to edit the settings of the search widget. Follow these instructions: 


Have a great day!
0 Kudos