Ian,
You execute the same queriy again but this time use the executeForExtent method
https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-QueryTask.html#executeForExtent
and union the resulting extent of the first extent query with the second.
Is this question about 4.x or 3.x?
//
ログインすると、投稿したり、更新をフォローしたりできます。初めてですか?無料アカウントを登録しましょう。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.