Select to view content in your preferred language

PopupTemplate Cancellation

380
3
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

 

3 Replies
JoeRogan
Regular Contributor

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.

jjgarrett0
Occasional Contributor

I'm hitting this same issue when trying to create a popup template for a service in the JS Maps SDK 4.30. 

0 Kudos
JoeRogan
Regular Contributor

I had a support case open with Esri Canada on this.  After a couple weeks of looking into it, they told me this was expected behavior and to use the Feature Info widget.  I'm pretty disappointed.