Solved! Go to Solution.
Using the Javascript API, what's a good way to implement the following functionality :
A user should be able to select or draw a rectangle (A4 or A3) on the map and drag it. The resulting extent should be available for me (so I can send it to a printing routine).
I'm looking for suggestions on what tools to use (maybe an esri drawing tool or the OverviewMap class https://developers.arcgis.com/en/javascript/jsapi/overviewmap-amd.html?) or other ideas of how to accomlpish this.
Thanks in advance!
Using the Javascript API, what's a good way to implement the following functionality :
A user should be able to select or draw a rectangle (A4 or A3) on the map and drag it. The resulting extent should be available for me (so I can send it to a printing routine).
I'm looking for suggestions on what tools to use (maybe an esri drawing tool or the OverviewMap class https://developers.arcgis.com/en/javascript/jsapi/overviewmap-amd.html?) or other ideas of how to accomlpish this.
Thanks in advance!
Possibly I am not giving a beautiful explanation. But combining these two features may satisfy your requirement.
https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html
https://developers.arcgis.com/en/javascript/jssamples/graphics_contextmenu.html
You may add print task in context menu for the added graphic.
Abhy