This is what I want to do:
1) Query a map service searching for project ID = 12345, the result is a polygon. https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm
2) Zoom out the polygon shape 500 feet or more
3) Get map extension coordinates to build a Bounding Box:
|4) Call Export Map method from this same map service, passing map extension coordinates to get a picture of the area|
Questions: I was able to do step number 1) running something like:
How can I do step number 2, and 3.