Select to view content in your preferred language

Identify popup jsapi v2.4

505
2
09-07-2011 06:41 AM
DougCollins
Occasional Contributor
Greetings,
I have been working with the Identify Popup sample and am getting an error on the following line in the sample:   map.infoWindow.setFeatures([ deferred ]);

Using Firebug, it states that the method "setFeatures" does not exist.  I searched the jsapi v2.4 code and could not find that method.  I must be missing something here, but cannot figure out what it is.
Is there a method called "setFeatures" or is this something that must be written?
I'm not sure how the sample runs, since it makes the call to the method but it is not in the code.

Confused,
Charlie
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
setFeatures is a method available on the Popup class that allows you to associate an array of features with the popup window. In the sample a new Popup class is created and set to be the map's info window. In your code are you using the Popup class or the standard InfoWindow?
0 Kudos
DougCollins
Occasional Contributor
Thanks, that makes sense now.  I'll look through the Popup class.

Thanks,
Charlie
0 Kudos