I programmatically add a graphic to my map, which works fine, for example :
var pnt = map.graphics.add(new Graphic(evt.mapPoint, stopSymbol));
I need to fire an event handler when this
pnt is drawn on the map. I have tried
map.on("graphic-add"), but it does not fire for above.
I've also tried to fire a
reposition event with
map.centerAt(pnt.geometry), but also nothing fires .
Any advice ?