yasinderer

Export Image at specific scale

Discussion created by yasinderer on Mar 6, 2013
Latest reply on Mar 7, 2013 by JGravois-esristaff
Hi,
I want to export image at specific scale but  I can't find set the scale.
I'm looking for a method like this. esri.geometry.getExtentForScale(map, 1000)

My code:
     
            var params = new esri.layers.ImageParameters();
            params.format = 'png8';
            params.bbox = tempExtent;//esri.geometry.getExtentForScale(tempExtent, 1000);
            params.height = '407';
            params.width = '655';
            params.dpi = 200;
            params.layerIds = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32];
            params.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW; //LAYER_OPTION_SHOW
            params.transparent = true;
            
            mapLayer.exportMapImage(params, function (img) {                
                document.getElementById('imgPath').innerHTML = img.href;
            });
        }



Thanks
Yasin

Outcomes