<?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 Delay on loading Image Layer in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/delay-on-loading-image-layer/m-p/847840#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some issue with loading Image Layer. I created mosaic dataset and published it as Image Service on ArcGis Server.&amp;nbsp;Then i connect to this service from web-client. Below is java script that i use :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; map = new Map("map", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [26.4171, 49.8400],&lt;BR /&gt; zoom: 17&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var params = new ImageServiceParameters();&lt;BR /&gt; params.noData = 0;&lt;BR /&gt; params.compressionQuality=50;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var imageServiceLayer100 = new ArcGISImageServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserver.com%2Farcgis%2Frest%2Fservices%2FMosaicDatasetEx%2FImageServer%3Ftoken%3D" rel="nofollow" target="_blank"&gt;http://server.com/arcgis/rest/services/MosaicDatasetEx/ImageServer?token=&lt;/A&gt;&lt;SPAN&gt;" + tokenvalue, {&lt;/SPAN&gt;&lt;BR /&gt; imageServiceParameters: params,&lt;/P&gt;&lt;P&gt;disableClientCaching: false&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.addLayers([ imageServiceLayer100]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is standard example. But it works with some delay wich is from 1-2 sec and more. It loads images every time i change the map in web browser, scale or position. Even if images are getting from local cache. And then it renders&amp;nbsp;all images in one time. So it causes delay.&amp;nbsp;&amp;nbsp;Is there any way to improve this ?May to load images asynchronously ? But not sure how&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2017 14:42:12 GMT</pubDate>
    <dc:creator>SergeyVladimirov</dc:creator>
    <dc:date>2017-08-14T14:42:12Z</dc:date>
    <item>
      <title>Delay on loading Image Layer</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/delay-on-loading-image-layer/m-p/847840#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some issue with loading Image Layer. I created mosaic dataset and published it as Image Service on ArcGis Server.&amp;nbsp;Then i connect to this service from web-client. Below is java script that i use :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; map = new Map("map", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [26.4171, 49.8400],&lt;BR /&gt; zoom: 17&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var params = new ImageServiceParameters();&lt;BR /&gt; params.noData = 0;&lt;BR /&gt; params.compressionQuality=50;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var imageServiceLayer100 = new ArcGISImageServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserver.com%2Farcgis%2Frest%2Fservices%2FMosaicDatasetEx%2FImageServer%3Ftoken%3D" rel="nofollow" target="_blank"&gt;http://server.com/arcgis/rest/services/MosaicDatasetEx/ImageServer?token=&lt;/A&gt;&lt;SPAN&gt;" + tokenvalue, {&lt;/SPAN&gt;&lt;BR /&gt; imageServiceParameters: params,&lt;/P&gt;&lt;P&gt;disableClientCaching: false&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.addLayers([ imageServiceLayer100]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is standard example. But it works with some delay wich is from 1-2 sec and more. It loads images every time i change the map in web browser, scale or position. Even if images are getting from local cache. And then it renders&amp;nbsp;all images in one time. So it causes delay.&amp;nbsp;&amp;nbsp;Is there any way to improve this ?May to load images asynchronously ? But not sure how&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/delay-on-loading-image-layer/m-p/847840#M552</guid>
      <dc:creator>SergeyVladimirov</dc:creator>
      <dc:date>2017-08-14T14:42:12Z</dc:date>
    </item>
  </channel>
</rss>

