This is how I instantiate my graphic.
var pt = new esri.geometry.Point(jsonobj.longitude, jsonobj.latitude, this.map.spatialReference);
var sms = new esri.symbol.SimpleMarkerSymbol();
var infoTemplate = new esri.InfoTemplate("<b>THIS IS INFO</b>");
var graphic = new esri.Graphic(pt, sms, infoTemplate);
this.map.graphics.add(graphic);
Solved! Go to Solution.
Darin,
maybe this example of a pop-up for a graphic can help you
Tim
Hi Tim,
Thanks for the quick reply. Looking through your code I see how the buttons have the infowindow.show. I was under the impression that if you give a graphic an infotemplate when you create it that the default behavior is to show the infowindow when you click the graphic. Is this not the case. In the meantime I will keep fiddling with this code and see if I can get something similar to work in my program.
Yes, this is where I am finding myself having trouble, because from my understanding the default behavior of a graphic with an infoTemplate is that on click it should display the infoWindow, but my graphics dont seem to do that . I will fiddle around with it some more and see if I can find out why.
Thanks again for your help!