Select to view content in your preferred language

Esri Map v4.28 screen not refreshing /redrawing properly

579
2
01-06-2024 10:39 AM
ThanmaiC
New Contributor

Hello,

I am using the Esri map JavaScript SDK (v4,28) for a map implementation in one of my project. I found an issue that my map/screen almost never refreshes properly.

If I need to see the click event or any update changes like marker pin style and popup text edits, the map doesn't update. The only thing that gets it to update is to use the hand tool and wiggle the map slightly and suddenly everything's updated.

I don't believe this is because my computer is on the slower side. Do you have any specific system requirements(Graphic card, etc) for the Windows laptop to run and see the updates of the map quickly and correctly?

Strangely the same piece of code executes well without any delay on my Mac machine.  I do any marker pin style and popup text edits, etc, this absolutely works very well and fine with map updating quickly on Mac, without any need to wiggle the map.

But this issue is mostly on my Windows laptop with the below system config.

Does anyone know why this might be happening?'

Sharing a small demo video of the delay in update and need to move the map to update:
https://www.loom.com/share/bd7138f4d6cb4c00b439bf1a56804d5d?sid=1271b294-a761-453a-8939-2b1fff1e3838

This is just an example of delay, I have many other things like this which is causing a delay and need to move the map to update. This is a very bad experience.

System Specs:

Windows 10

Intel Core i5 CPR @1.60 GHz 1.90 GHz

Intel(R) UHD Graphics 620

16GB RAM

 

Please resolve this at the earliest, what is the reason for this not refreshing in map until slightly moved/wiggled

 

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Thank you for posting your question here @ThanmaiC. It's tricky to say without seeing the code, but I assume this is an editing workflow without the Editor widget, so we need to refresh or update to see changes. Here are some samples that may serve as guides:

https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection-edits/

https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/

https://developers.arcgis.com/javascript/latest/sample-code/editing-groupedfeatureform/

And using the Editor widget:

https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-basic/

 

0 Kudos
J-Brown
New Contributor

If you're still having issues...

My best guess is that the new version of ArcGIS is using GPU-acceleration to improve some of its rendering capabilities. I found that enabling the following Chrome flag resolved this issue by preventing GPU-acceleration from being “blocked” in your browser.

1. In Chrome, browse to chrome://flags
2. Enable “Override software rendering list”

0 Kudos