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?
//
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.