Select to view content in your preferred language

Possible to have more than one popup layer?

655
2
02-16-2012 02:43 PM
KenMorefield
Regular Contributor
I've implemented popups in one of my applications, but recently encountered a problem.  I'm trying to implement popups on more than one feature layer, but I can't get it to work.  It will work for the first feature layer created, but none of the additional feature layers.  Is there an efficient way to implement popups for many layers?  Do you have to somehow create/destroy popups and feature layers, so that only one is present in the project at a time?  This project will have 2 ArcGISDynamicMapServiceLayers, each of which will contain 2 point layers.  So we're talking a total of 4 point layers.  Each have different attributes.  So I'd like 4 different popups to accomodate all layers.  Any suggestions?  Am I missing something simple?

Thanks,
Ken
0 Kudos
2 Replies
derekswingley1
Deactivated User
The popup (or info window) lives at the map level. At the layer level (or graphic level), you can specify different info templates to display different attributes/content for each layer.
0 Kudos
KenMorefield
Regular Contributor
Thanks Derek,
Can I set the infotemplate for each layer, and then pass that to the popup somehow?

Ken
0 Kudos