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
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.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.