feature setInfoTemplate - Missing Title

642
1
02-05-2013 08:00 PM
KierenHarvey
New Contributor
Hi

I followed the sample:
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/find_popup

In the sample, the title is always set to empty:
new esri.InfoTemplate("", "Parcel ID: ${PARCELID}");

How do I actually specify a title? I have tried:
new esri.InfoTemplate("TITLE", "Parcel ID: ${PARCELID}");

... and a few variations, searched through the InfoTemplate, PopupTemplate etc samples, but the title just won't come through.
0 Kudos
1 Reply
KierenHarvey
New Contributor
I found this note under Popup.setFeatures which describes the behavior I'm seeing as well as an approach:

http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#Popup/setFeatures

setFeatures(features)
Associate an array of features or an array of deferreds that return features with the info window. The first feature in the array is automatically selected.
Note:When setFeatures is used the title area displays the number of features and the index of the currently selected feature and ignores the title defined in the info template. If you want to display title text you will need to specify it as part of the info window content.


It might be good to add a comment to that affect in the sample 🙂
0 Kudos