<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Refreshing WMS layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2706#M222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very useful! It works! I used your suggestion to refresh a service with both a wms from geoserver and a layer from arcgis server and everything is fine.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 09:08:40 GMT</pubDate>
    <dc:creator>AlessandroAssom</dc:creator>
    <dc:date>2014-11-11T09:08:40Z</dc:date>
    <item>
      <title>Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2697#M213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm really struggling with figuring out how to refresh a WMS layer.&amp;nbsp; There seems to be a few missing operations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;First, it would be nice if we could simply invoke refresh() to update the imagery.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Second, it would be nice if we could clone() a layer and add it to a map.&amp;nbsp; This would allow us to add a new layer like the one we want to refresh before removing the old layer.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Third, without the two options above it would be nice if we could manually override supressing the GetMap request when two layers resolve to the same url.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;In the third case I'm adding two layers and only imagery for the first is attempted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function createWmsLayer() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = new esri.layers.WMSLayer("http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.setVisibleLayers([2]); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.setImageFormat("png"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return layer; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(createWmsLayer()); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(createWmsLayer());&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;http activity:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://localhost:55240/Proxy.ashx?http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&amp;nbsp; http://localhost:55240/Proxy.ashx?http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&amp;nbsp; http://sampleserver1a.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;FORMAT=image/png&amp;amp;TRANSPARENT=TRUE&amp;amp;STYLES=&amp;amp;VERSION=1.3.0&amp;amp;LAYERS=2&amp;amp;WIDTH=996&amp;amp;HEIGHT=630&amp;amp;CRS=EPSG:4326&amp;amp;BBOX=18.1801624186747,-125.192865,55.5544955813253,-66.105824&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems the only way to force the imagery to reload is by adding another WMS layer exactly like the first but with a random query string value.&amp;nbsp; Is there a better way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Related Post&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://gis.stackexchange.com/questions/32272/arcgis-javascript-api-refresh" rel="nofollow" target="_blank"&gt;http://gis.stackexchange.com/questions/32272/arcgis-javascript-api-refresh&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 16:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2697#M213</guid>
      <dc:creator>CoreyAlix</dc:creator>
      <dc:date>2012-08-29T16:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2698#M214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does this help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/dynamicmapservicelayer.htm#refresh"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/dynamicmapservicelayer.htm#refresh&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 19:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2698#M214</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-29T19:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2699#M215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i was wondering if it is detecting a duplicate.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you could get around by manually specifying an index&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(layer, map.layerIds.length+1);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 19:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2699#M215</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-08-29T19:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2700#M216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;i was wondering if it is detecting a duplicate.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, it doesn't do anything like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If two requests have identical URIs then caching will kick-in, obviously subject to conditions e.g. caching is enabled, HTTP headers indicating that resources can/should be cached etc. etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The clue to how ESRI (from the client-side) force a refresh() to go back the server for other layer types is in the link I posted....and the OP has already identified the answer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; (although I'd be careful about the source for the value)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 07:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2700#M216</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-30T07:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2701#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The documentation for refresh() states, "Refreshes the map by making a new request to the server. In order to refresh the layer in this manner, setDisableClientCaching must be true. This ensures that map images are not cached on the client. (As of v1.2)" but &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;setDisableClientCaching&lt;/STRONG&gt;&lt;SPAN&gt; is defined for ArcGISDynamicMapServiceLayer and not DynamicMapServiceLayer.&amp;nbsp; Calling refresh on a WMSLayer instance has no affect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2701#M217</guid>
      <dc:creator>CoreyAlix</dc:creator>
      <dc:date>2012-08-30T16:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2702#M218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The documentation for refresh() states, "Refreshes the map by making a new request to the server. In order to refresh the layer in this manner, setDisableClientCaching must be true. This ensures that map images are not cached on the client. (As of v1.2)" but setDisableClientCaching is defined for ArcGISDynamicMapServiceLayer and not DynamicMapServiceLayer.&amp;nbsp; Calling refresh on a WMSLayer instance has no affect.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Exactly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you will have to add the functionality for the WMS layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to copy ESRI, then have a look at the requests sent for the AGS dynamic layer with the caching enabled/disabled - spot the difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also look at applying some cache control directives server-side if you can/want/need to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 17:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2702#M218</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-30T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2703#M219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay..I gave it a try and it certainly is better then adding/removing the layer from the map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer = new esri.layers.WMSLayer("http://sampleserver1c.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibleLayers: ['1', '2']
&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after ( layer, "onLoad", function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var getImageUrl, tick;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tick = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getImageUrl = layer.getImageUrl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.getImageUrl = function ( extent, width, height, callback )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = getImageUrl.call ( layer, extent, width, height, function (url) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callback.call ( layer, url + "&amp;amp;_c=" + tick++ );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setInterval ( function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.refresh ();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 5000 );
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(layer);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So...seems that this is the correct approach?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2703#M219</guid>
      <dc:creator>CoreyAlix</dc:creator>
      <dc:date>2021-12-10T20:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2704#M220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Almost, I wouldn't go with the "tick" approach though, aside from slightly iffy scoping it has the potential not to be unique, don't forget that caches have the capacity to persist resources (and importantly use the URI that was used to retrieve them as the key) between sessions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So a user visits your site, retrieves a map image with a &amp;amp;_c=1, then leaves the site.&amp;nbsp; They come back later (so your tick counter is reset to zero) then they retrieve the map image again same extent, same projection etc. and same &amp;amp;_c=1 i.e. the URI is the same as their last visit so the image is served from the cache, not the server - make sense?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI use the number of milliseconds since the UNIX epoch or, in simple terms:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
new Date().getTime()
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
new Date().valueOf()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2704#M220</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2021-12-10T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2705#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks geos_rfleet -- here's the result of your suggestions - not sure it's a generic solution but *should* work for layers derived from DynamicMapServiceLayer (does work for WMSLayer):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 function extendLayer(layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var getImageUrl;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getImageUrl = layer.getImageUrl;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.setDisableClientCaching = layer.setDisableClientCaching || function (disable) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.disableClientCaching = disable;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (disable) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.getImageUrl = function (extent, width, height, callback) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = getImageUrl.call(layer, extent, width, height, function (url) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callback.call ( layer, url + "&amp;amp;_c=" + ( new Date () ).getTime () );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.getImageUrl = getImageUrl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return layer;
 }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2705#M221</guid>
      <dc:creator>CoreyAlix</dc:creator>
      <dc:date>2021-12-10T20:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing WMS layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2706#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very useful! It works! I used your suggestion to refresh a service with both a wms from geoserver and a layer from arcgis server and everything is fine.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 09:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refreshing-wms-layers/m-p/2706#M222</guid>
      <dc:creator>AlessandroAssom</dc:creator>
      <dc:date>2014-11-11T09:08:40Z</dc:date>
    </item>
  </channel>
</rss>

