Select to view content in your preferred language

Identify with multiple results poped up. How to catch the click event of navigating on "previous" or "next" ?

237
3
Jump to solution
a week ago
baohuachu7
Occasional Contributor

Want to when navigating  on the popup results to create highlight and zoom to the selected results.  The layer is MapImageLayer , so some customization should be done on identify. But not get any idea to catch the click event on "previous" and "next" button. 

baohuachu7_0-1766371364360.png

 

0 Kudos
1 Solution

Accepted Solutions
fdeters
Regular Contributor

I have done this by using `watch()` from `reactiveUtils` on the view's `view.popup.selectedFeature` property. See an example here: https://codepen.io/fdeters/pen/ZYOzdLK 

View solution in original post

3 Replies
fdeters
Regular Contributor

I have done this by using `watch()` from `reactiveUtils` on the view's `view.popup.selectedFeature` property. See an example here: https://codepen.io/fdeters/pen/ZYOzdLK 

fdeters
Regular Contributor

Also, the Popup map component is still in beta, but you'll be able to do something similar with an event-based approach using the `arcgisPropertyChange` event: https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-popup/#arcgisProper... 

baohuachu7
Occasional Contributor

@fdeters Thank you so much for your solution👍