Edit: to illustrate why this is useful, I have a map with 7 layers. When I manually click on the map, the view's
hitTest function instantly returns the attribute values of all features at the location clicked. See the
response.results object in the debugger:
There was no need for me to run 7 asynchronous
QueryTask operations then collate the responses after waiting for each to return - the view handles this without requiring a single network request. The view also handles changing layer visibility automatically, so if (eg) one layer was switched off when I clicked, then only 6 graphics would be returned, etc.
Given a known coordinate, is it possible to trigger a click at that location?