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?
//
Os membros conectados podem publicar, acompanhar atualizações e muito mais. É novo por aqui? Cadastre-se gratuitamente.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.