0

After Adding more than 5 mapimage in esri map ,zooming in chrome and mozilla takes lots of cpu. In chrome page specially hangs. If zoom level is highest then page stops working in chrome. Also in chrome,during image load page becomes somewhat unresponsive.

    var map = new esri.Map('map', {
                   //center: [6.6032, 53.1917],

                sliderStyle: "large",
                basemap:'Topo',
                 zoom:9,
                maxZoom:14,
                force3DTransforms: true,
                navigationMode: "classic"
              });

            EsriDBImageLayer= new esri.layers.MapImageLayer({  
                'id': 'usgs_basemap_image_overlay'  
            });  
            EsriDBImageLayer.setOpacity(0.7);
            map.addLayer(EsriBaseDBImageLayer);
            //dbImageList is retrieved from webservice with all
            necessary data.

            var tempImageList = dbImageList;
            for(var i=0;i<tempImageList.length;i++){
                   EsriDBImageLayer.addImage(tempImageList[i]);                                      
            }
4
  • Please show your source code Commented Nov 8, 2016 at 11:43
  • I have updated my code. Commented Nov 16, 2016 at 6:49
  • Did you solve this? Commented Dec 13, 2016 at 16:27
  • No, It was not issue of esri but of chrome. Chrome get freezed after loading multiple big resolution png files. Commented Dec 13, 2016 at 16:59

1 Answer 1

1

I finally figured the solution. It was not the issue with arcgis-api but because of browser. It seems google chrome cannot handle large resolution png images files properly. So if there are more than 10 png files with more than 3k resolution then not only browser hangs but it also takes 30%+ cpu usuage. So it is better to load vector files if possible for multiple files. I had 25 + files. I hope this can be helpful to those who are facing same problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.