Select to view content in your preferred language

Featuretable - selected rows - identify feature on map

233
2
02-16-2024 02:24 AM
Robert_van_Gilst
New Contributor III

I use FeatureTable, and the rows I select show highlighted on the map, so far so good.

I would like to zoom/have a visual indicator/popup when I click on one of the selected rows. I cannot find a hook that will do this for me.

0 Kudos
2 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

You can watch FeatureTable.highlightIds and zoom to features or display popup as it is changes. In this codepen, we are zooming to the selected features: https://codepen.io/U_B_U/pen/QWoYBrR?editors=100

You can use MapView.openPopup() to display popups.

Hope this helps,

-Undral

 

0 Kudos
Robert_van_Gilst
New Contributor III

Thank you for you answer, but unfortunately, it is not the answer that I am looking for.

I have made a select by attributes, show only the selected features in the FeatureTable widget and zoom in to them. Here I would like to have an extra highlight on the feature (like in ArcGIS Pro) when I visually select a row that already has a selection box ticked, to indicate which of the selected items I am pointing at.

We have found a work around by using deselect items from the menu and then selecting the item that we are interested in. But this is not super intuitive.

// Robert

0 Kudos