How to flash map graphics in 4x?

475
1
05-24-2018 09:32 AM
DirkVandervoort
Occasional Contributor II

There was some discussion here about function Graphic.getDojoShape() works fine in js api 3. but it does not work in 4.

Is there a more modern pattern for flashing graphics in the JSAPI 4x?

TIA

0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

You can't update the graphics in place, so you need to remove, clone, modify, and add it back.

But for flashing, you could remove the graphic, use a setTimeout of maybe 300ms and add it back. This only applies for GraphicsLayer.