upgraders

Can you specify an OnClick event specific to a Layer to identify two different Popups

Discussion created by upgraders on Jan 25, 2013
Latest reply on Jan 28, 2013 by dcastano
I'm trying to figure out how to create a different InfoWindow (template) popup for each of my feature layers, since each have a different set of fields and data.  I have not been able to find any examples yet, but I figured that I could start by creating a different OnClick event. So for example dojo.connect(map, "onClick", myClickHandler);  can I do something like

dojo.connect(map(FeatureLayer1), "onClick", myClickHandler);

dojo.connect(map(FeatureLayer2), "onClick", myClickHandler);

or am I way off on how to proceed with this?

THANKS!

Outcomes