問題:pointsポリゴンのを変更すると、別のポリゴンのpoly2も変更されます!!pointspoly
一方を変更すると他方も変更されるのはなぜですか。
console.log(poly.getPoints()[1].x); // 100
// Make a change to `poly2`
poly2.setPoints(poly.getPoints());
poly2.getPoints()[1].x=200
console.log(poly.getPoints()[1].x); // 200 (both poly and poly2 are affected!)
jsfiddle: http://jsfiddle.net/8hFyv/