> * how to determine where to insert it in array?
I have both a markers array and an MVC array.
The MVC array has the polyline going from marker to marker.
I assigned each element in the marker array a property which contains
the index value in the MVC array for the corresponding node.
Something like:
marker[i].mvc_index = j;
To insert a node into the MVC array after marker[i]:
path_var.insertAt(marker[i].mvc_index, position);
In other words, your code has to keep track of the relationship
between (1) markers and (2) nodes in the MVC array.
Larry is right. It does take a bit of work.