shaun_weston-eagle-co-nz-esridist

Export Web Map Set Scale

Discussion created by shaun_weston-eagle-co-nz-esridist on Aug 5, 2013
Latest reply on Aug 6, 2013 by vinaybansal
I've built a tool that uses the export web map gp service and I've got a text input that allows the user to set the scale of the print out e.g. the current map scale may be 1:100,000, but they can set the text to say 1:50,000 and the printout will be at that scale rather than 1:100,000.

I can't get this to work. What I thought I'd to is set the scale to whatevers in the text input then set it back after the export web map process has finished, but doesn't seem to work. I think it's because I have to wait till the scale has changed, so I'm using this:

https://developers.arcgis.com/en/javascript/jsapi/map.html#setscale

w
hich is this for me
map.setScale($("#mapScale").val());


How to I add a listener for when the scale has changed. Or is there a better way to do this? by just sending the scale to the export web map task or something?

Cheers :)

Outcomes