xueling

Infotemplate not working

Discussion created by xueling on Jan 29, 2012
Latest reply on Jan 31, 2012 by xueling
Hi,

My info template is not working at all currently and it looks like this :

var stadium = [];

var symbol = new esri.symbol.PictureMarkerSymbol('/images/icons/stadium.png', 25, 25);

var infoTemplate = new esri.InfoTemplate();
infoTemplate.setTitle("Stadium");

infoTemplate.setContent("This is a stadium.");


var graphic = PointGraphic;
graphic.setSymbol(symbol);
graphic.setInfoTemplate(infoTemplate);
stadium.push(OneMap.map.graphics.add(graphic));

Can anyone help and tell me what's wrong with it because it was working fine 2 months ago.

Thanks and regards,
Xueling.

Outcomes