Delay on loading Image Layer

354
0
08-14-2017 07:42 AM
SergeyVladimirov
New Contributor II

Hi all.

I have some issue with loading Image Layer. I created mosaic dataset and published it as Image Service on ArcGis Server. Then i connect to this service from web-client. Below is java script that i use :


map = new Map("map", {
basemap: "topo",
center: [26.4171, 49.8400],
zoom: 17
});

var params = new ImageServiceParameters();
params.noData = 0;
params.compressionQuality=50;

var imageServiceLayer100 = new ArcGISImageServiceLayer("http://server.com/arcgis/rest/services/MosaicDatasetEx/ImageServer?token=" + tokenvalue, {
imageServiceParameters: params,

disableClientCaching: false
});

map.addLayers([ imageServiceLayer100]);


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 all images in one time. So it causes delay.  Is there any way to improve this ?May to load images asynchronously ? But not sure how

Many thanks for any solution

Tags (1)
0 Kudos
0 Replies