Spatial query

Perform a spatial query locally. A QueryTask is created using a local dynamic layer (ArcGISDynamicMapServiceLayer) and the task is executed asynchronously on the local server.