Hi @Alexander Nohe, thanks for your reply!
However, I am not quite sure how to use LayerQuery to accomplish this task, or if it is even possible.
Here are some more details:
We have six layers with different POIs (one layer for bus stops, one layer for campus security, one layer for parent-child rooms on campus…). The user can either turn off all layers, or activate only the layers they want, or activate all of them. When a layer is activated, small POI icons are shown on the map. The user can then click on the icon to get more information.
The problem is how to find out to which layer a clicked icon belongs, especially if all layers are activated and shown on the map. Of course we could first query the bus stop layer, then the campus security layer, … and so on, until the correct one is found. But this would not be very efficient. That’s why we used the IdentifyTask that identifies features for all layers that are currently activated, and returns an IdentifyResult.
But I am not sure how to do this in an offline environment. “LayerQuery” seems to query features only for a given layer, but we might have up to six layers that need to be queried at the same time….?