JS API: how to get a feature layer to rotate through which feature is on top?

346
1
07-07-2020 12:26 PM
JamesMcClellan
New Contributor

So, I'm building an app using the JavaScript API.  I have a feature layer that uses an unique value renderer in order to display custom symbols.  It's very common for a number of features to have the same exact lat/lon, and with the symbols being the same size, you can only see one feature.  When you click a feature the popup displays and you can page through and see the properties of all the features, but the visible feature doesn't change.  I want to be able to change which feature is being displayed to the user as they cycle through the features in the popup.  Any idea how to do this?

0 Kudos
1 Reply
VictorTey
Esri Contributor

Hi, although I do not know the exact answer to your question, I can think of a workaround. you can create another graphic layer that dynamically generate a graphic to "overlay" at the top of the feature cluster. that way when you page through the features, you can just update the overlay graphic.