adding picturesymbol

Discussion created by pramodharithsa on Aug 10, 2012
Latest reply on Aug 14, 2012 by pramodharithsa
I would like to add a picture symbol on a querytask result(over a poliline layer)
The issue is about the postion attribute.
var graphic = new esri.Graphic(position, simpleMarkerSymbol);
how do i get the mid point of every poly line.
is it like [(xmax-xmin)/2,(ymax-ymin)/2 ]??