POST
|
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!
... View more
09-17-2014
09:21 AM
|
0
|
0
|
366
|
POST
|
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.
... View more
09-17-2014
08:44 AM
|
0
|
2
|
366
|
POST
|
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);
... View more
09-17-2014
08:32 AM
|
0
|
4
|
849
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|