AnsweredAssumed Answered

Why is there no content in popup after search?

Question asked by bflessner on Jan 17, 2018
Latest reply on Jan 17, 2018 by bflessner

I've set up a feature layer with a popup and added it to my map. I'm also making the feature layer searchable via the search widget. When I search and select a result, the popup opens, and the title is fine, but the content is missing. Here's a demo:

https://codepen.io/anon/pen/dJgxVQ?editors=1000

 

When I search for district '2003' I get this (incorrect, no content):

Popup with no content

When I simply click on the feature, I get this (correct):

Popup with correct content

 

When poking around in the debugger, I see that when the popup has no content, popup.selectedFeature.layer is null. What's going on here? I simply want the same popup to show up if I click the feature or search. Thanks for any help you can provide!!

Outcomes