Open GoogleCodeExporter opened 8 years ago
this problem is not new as I found out:
http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.javascript/2008-02/msg010
83.html
Original comment by buf...@gmail.com
on 20 May 2008 at 10:57
I tried whats described in the article, and it works. I did it like this, where
myPoly is a dom object reference to the specific polyline :
var myPolyParent = myPoly.parentNode;
var myPolyCopy = myPoly.cloneNode(true); // deep clone
myPolyParent.removeChild(myPoly);
myPolyCopy.setAttribute('points', str);
myPolyParent.appendChild(myPolyCopy);
unfortunately the "attributes" like fill or not fill, strokeWidth, strokeColor
etc.
seem to go lost, although doing a deep clone of the node :(
Original comment by buf...@gmail.com
on 21 May 2008 at 10:32
Original comment by n...@sgtwilko.f9.co.uk
on 10 Feb 2010 at 1:49
Original issue reported on code.google.com by
buf...@gmail.com
on 20 May 2008 at 10:52