I am using the existing Search widget code and am unable to loop through multiple map services. I believe this is the sequence of functions that is called in the existing Search widget:
1. queryFeaturesSpatial()
2. queryFeaturesSpatial(), onResult()
3. bufferGeometries()
4. bufferGeometries(), bufferCompleteHandler()
5. queryFeaturesGraphical()
6. queryFeaturesGraphical(), onResult()
7. createSearchResults()
8. createSearchResults(), displayFields()
I have tried putting a hardcoded call to function queryFeaturesSpatial using another map service, but it stops in function bufferGeometries.
Has anyone else tried to do this?