Select to view content in your preferred language

Flash features (like in Pro) on click

189
2
Jump to solution
10-03-2024 05:51 PM
janzagar_0
Emerging Contributor

I have a 3D web app. I have a form that users can fill that highlights features that match their selections using the Query functionality. I also have a sidebar that is populated by cards depicting the results of the query. I want users to be able to click on a card and have the matching feature flash on screen to emphasize the feature amongst all the features highlighted from the query, like you can do on ArcGIS Pro, as well as open a popup. I have the popup working, but I can't find anything in the docs that "flashes" features. Does anyone know if this functionality exists?

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
JoelBennett
MVP Regular Contributor

There isn't any out-of-the-box functionality I know of, but adding it in wouldn't be terribly difficult.  The process would look something like this:

1) Get a reference to the feature you want to flash.

2) Create a new Graphic object with the same geometry as the object in step 1.

3) Assign the new graphic a custom symbol depending on geometry type.

4) Add it to the view's graphics collection.

5) After a second or so of a delay, it can then be removed from the view's graphics collection.

View solution in original post

2 Replies
JoelBennett
MVP Regular Contributor

There isn't any out-of-the-box functionality I know of, but adding it in wouldn't be terribly difficult.  The process would look something like this:

1) Get a reference to the feature you want to flash.

2) Create a new Graphic object with the same geometry as the object in step 1.

3) Assign the new graphic a custom symbol depending on geometry type.

4) Add it to the view's graphics collection.

5) After a second or so of a delay, it can then be removed from the view's graphics collection.

janzagar_0
Emerging Contributor

Thank you Joel. I will try this out!

0 Kudos