React map is constantly moving on load?

10-11-2021 07:45 AM
New Contributor II


I'm learning react and trying to get my previously created map into a React project. I only want it in one div on one page of the project. 

I followed this example here: with their live code here:

The problem is when I replicated the example code above, even their project had this problem where the map is constantly moving. Am I missing a dependency or something? 

Here is my main code for the component that has the map:

Thank you for the help

0 Kudos
1 Reply
Frequent Contributor II

Not quite sure, but I've seen this behavior if the arcgis CSS is not loaded, and looking at the network traffic of your app, I don't see it loading. I don't use esri-loader-react, so not sure if it has to manually load it or not, but would try that first.

0 Kudos