evtguy

Can you specify a map extent for use with PrintTask?

Discussion created by evtguy on Jan 28, 2014
Latest reply on Jan 29, 2014 by pepatosp
I think the answer to this is "no" but I wanted to check before submitting it to the Ideas page.

I'm using PrintTask to generate a vicinity map for a report that's generated on the fly when a user clicks a button. The report taks a feature, applies a buffer, and then peforms a deferredList of queries against several other feature layers. Anyways, I want the map that I generate to include the project but also the buffered extent as well (I also add it to the map as a graphic). It looks like my only recourse at the moment is to change the map extent with my code just before the printTask executes but that would freak out the user's screen and I would have to keep track of the map extent prior to the running of the report so that I could reset it once the printTask is completed.

So- as the API stands right now, can I just pass an extent as a parameter for the map's area?

Thanks!
Steve

Outcomes