Hi @nasha001,
Thanks for the help again.
I had tried it out the way you have mentioned and as the link says which you suggested.
It did worked when i had the pass the data as static as mentioned in the example.
However, when i retrieve the data from the database and pass it through a loop it marks the point in a randomize manner.
As the result i get a a disturbed polyline on the MAP.
Please find the attachment(i hope i am able to put my concern in front of you again).
Thanks