AnsweredAssumed Answered

ArcGISMapImageLayer RefreshInterval not working in some configurations

Question asked by mangoyoga on Feb 6, 2019
Latest reply on Feb 7, 2019 by mangoyoga

Hi,

We are loading WebMap from portal, where RefreshInterval for some layers have been set. Using fiddler, I can see that new export requests are performed for the layer at the set interval on my development environment. Using the same version of the software against a WebMap in customer environment does not refresh. Using fiddler for verification, no new export requests are sent in customer environment, but they are sent on development machine.

 

Using Snoop to inspect the ArcGISMapImageLayer,RefreshInterval I can see it is set to 00:00:12 in both environments. Comparing the json for the WebMap and layer, they are the same, except for some field names matching, min scale and full extent. Enabling supportedExtensions KmlServer was the last idea based on where they differ, but this had no effect. We have also tried setting refresh to other layers, just to see if that causes different behavior. Clearing Internet Explorer cache between every change.

 

The only difference I can see now in export requests, is that on the computer where refresh works, both refresh requests (MapServer/export?dpi=96....and so on) and those related to navigation contain the extra parameters in the query string i.e:

_ts=1549457143832

layers=show:0

On the client where refresh doesn't work, these parameters are not present in normal export requests. I assume _ts is to avoid picking up images from IE cache with different URL for each request. layers I can't see should make any difference, from what I can read from Export Map—ArcGIS REST API: Services Directory | ArcGIS for Developers , and all the layers are displayed in the map when I see exported images.

 

Using ArcGIS Runtime for .NET 100.4, and ArcGIS Server 10.6 (and same version of portal). 

 

Sample information about operational layers from customer

"id": "pov_tet_5470",
"layerType": "ArcGISMapServiceLayer",
"url": "https://serverurl.com/agskart/rest/services/Product/pov_tet/MapServer",
"visibility": true,
"opacity": 1,
"title": "Layer name",
"itemId": "5e6b8ff78c68489b84f7b29d6809488b",
"refreshInterval": 0.2,
"layers": [
     {
          "id": 0,
          "popupInfo" : {}
     }
     

          

 

Information about the same layer in development

"id": "rad_7401",
"layerType": "ArcGISMapServiceLayer",
"url": "https://serverurl.com/arcgis/rest/services/radioresources/MapServer",
"visibility": true,
"opacity": 1,
"title": "layer name",
"itemId": "2698b76d9b8146628ab88b051e678f12",
"refreshInterval": 0.2,
"layers": [
     {
          "id": 0,
          "popupInfo" : {}
     }

 

Does anyone have any idea on why it works in one environment, and not in another?

Outcomes