Select to view content in your preferred language

PopupTemplate Cancellation

221
1
03-13-2024 03:08 PM
DavidYim
New Contributor

Noticed that popupTemplate has a cancellation of roughly 5 seconds. 

This sample code will not work for those w/ slower internet connections.

To reproduce 

- Ensure sluggish connection. If not, (Done in chrome, open up the console and go to the network tab. ) enable throttling by adding a custom profile. 1bkit/s 250 ms

- Click on a state on the UI.

- On the network tab, see that the endpoint  that looks like this "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/dynamicLayer/query" takes over 5 seconds

- Observe cancellation. 

Although a response time of over 5 seconds is not optimal, it is important that we are able to configure the default popuptemplate's timeout. I have attempted to up the esri/config's timeout object that that did not do the trick. We need to ensure the default popuptemplate works with slower connections. 

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-dynamicdatalayer-...

 

 

DavidYim_0-1710367247167.png

 

1 Reply
JoeRogan
New Contributor III

Hi, I'm curious if you found a solution to this problem.  This thread is under the ArcGIS Pro category, but I'm experiencing the same 5 second cancellation on popups in the newest version (1.14) of Experience Builder (Developer Edition).  This doesn't match up with the esriConfig.request.timeout  which is set to 60 seconds so I'm not sure where I can change this.

0 Kudos