Detect change in popup features

230
1
Jump to solution
03-07-2024 01:02 PM
GeoffreyJoseph
New Contributor III

I have an app (JSAPI 4.28) where the user searches an address and views various districts (police, fire, voting precinct, etc) associated with the address. In the popup header, the user can switch between these features using the arrows. Is there anyway to detect when the user clicks on these arrows to change the feature? If not, is there anyway to remove the header?

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

You can use reactiveUtils to watch for when the popup.selectedFeature changes, that should do it.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeatur...

View solution in original post

1 Reply
ReneRubalcava
Frequent Contributor

You can use reactiveUtils to watch for when the popup.selectedFeature changes, that should do it.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeatur...