My project is a modified version of the templates (basic viewer) in ArcGIS.com and I am using v3.2 of the API. Most of the original UI features are either disabled or removed.I used the code snippets of the Find Address sample. http://help.arcgis.com/en/webapi/javascript/arcgis/samples/locator_address/index.html to create infoWindow when the user clicks on a graphic point on the map. However I cannot get the title to show, see screen shot below:[ATTACH=CONFIG]18801[/ATTACH]Here is part of my codes:
Bottom of InitUI:
map.infoWindow.resize(200,125);
map.infoWindow.setTitle("");
map.infoWindow.setTitle("") is not doing anything...
Where the graphics are created and added to map:
// populate the attributes
attrPoint = {
"Id" : AId,
"EID" : AEID,
"Name" : AName,
"Xcoord" : geoPoint.x,
"Ycoord" : geoPoint.y,
"AssetIndex" : AIndex
};
// infoWindow
var infoTemplate = new esri.InfoTemplate("Asset Name", "<h3>Name: ${Name}</h3><br/>Id: ${Id}<br/>EId: ${EID}<br/>FCI: ${AssetIndex}" );
// Create graphic
var graPointGraphic = new esri.Graphic(geoPoint, defaultSymbol, attrPoint, infoTemplate);
// add to map
map.graphics.add(graPointGraphic);
Although I can get fancy with the HTML inside the InfoTemplate content but it won't look as nice as if the title will just show up. What can be wrong? Is there anywhere in the template code causing the problem? Please advise.