Hello
I am using this code to open the popup at some location:
Solved! Go to Solution.
Hi @YogeshSwami -
Did you try setting the features property of the open method to the array of features returned from the query? It's expecting an array of graphics, not just one individual graphic. This sample highlights the feature returned from the query successfully: https://codepen.io/laurenb14/pen/xxpozMp?editors=1000
The shouldFocus option for the Popup open method provides a way to set focus to the popup itself automatically as it opens, not the feature.
Hi @YogeshSwami -
Did you try setting the features property of the open method to the array of features returned from the query? It's expecting an array of graphics, not just one individual graphic. This sample highlights the feature returned from the query successfully: https://codepen.io/laurenb14/pen/xxpozMp?editors=1000
The shouldFocus option for the Popup open method provides a way to set focus to the popup itself automatically as it opens, not the feature.
Hello @LaurenBoyd,
Thanks for the reply.
It really helped. I replaced features:result by features:[result] and it is working fine.