john.c.cartwright

InfoTemplate w/ IdentifyTask

Discussion created by john.c.cartwright on May 22, 2010
Latest reply on Jun 3, 2010 by DHusbands-esristaff
Hello All,

is there any reason that a InfoTemplate doesn't work w/ an IdentifyTask?  For example,

function addToMap(idResults, evt) {
   var graphic = null;
   for (var i=0, il=idResults.length; i<il; i++) {
      graphic = idResults[i].feature;
      graphic.setInfoTemplate(infoTemplate);
   }

   map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
}

displays an empty popup.  I've confirmed that the graphic instance does have an InfoTemplate instance property.  Can someone please point out what I'm missing?

version is AGS Java 10-prerelease.

Thanks!

--john

Outcomes