Display Info Window on the multiple coordinates on the arcgis map in Next JS
I think that in your code you are having a context problem with the variable i. When the popup shows the value of i always gonna be vehicleData.length. So you can solve the context problem using let instead of var, but I will suggest you another approach. Declare template, the popup template, outside the loop, … Read more