I have two layers published in my ArcGIS Server 10.1 server. One is a polygon layer representing the World map by country and the other is a point layer depicting cities.
Please, note that cities layer does NOT contain the information of the country they belong to, it is contained in the other world countries layer.
I know that it is a quite basic example, but I am not sure on how to tackle this problem: I see examples on retrieving information from a unique layer, but not about how to distinguish between information required from different layers and integrate it all together in a single widget.
EDIT: Of course, the problem is not building the JS interface but how to retrieve and integrate the information coming from different layers just having the coordinates where the user clicked.
Please, can anyone provide some information/concepts/ideas/links to tutorials about that?
Thanks for your help!