I am with arcgis server 10.0 and flex 2.5, quite a new user.
I have a mapservice that works well, and was able to add the identify widget to get information on the objects. I would like to replace this by popups : instead of using Identify, I would like to be able to click on the map (on a line for instance) and get a window that displays a field of my layer.
I am not able to make the popup work, nothing happens with what I have now, despite all the topics I checked on that subject, I cannot understand the process of the congif for popup. Do I have to specify the code of the layer I want to use information from? This is not clear for me.
If you ever have time to take a look, here are the configs I have:
If you are using a feature service type you can specify the popup within the layer tag like you have done. If you are using a dynamic map service (which you are) you need to use sub layers, eg:
The sublayer Id refers to the layer id in the map service REST endpoint. This way you can specify different popups for each of your layers in your map service (they can also all point to the same popup xml if you wish)
If you are using a feature service type you can specify the popup within the layer tag like you have done. If you are using a dynamic map service (which you are) you need to use sub layers, eg:
The sublayer Id refers to the layer id in the map service REST endpoint. This way you can specify different popups for each of your layers in your map service (they can also all point to the same popup xml if you wish)
Thank you very much, it works very well indeed! I got how to define the layers for popup and how tp link it with the popupconfig. I'll work on this now to improve my popups.