diff --git a/lib/OpenLayers/Geometry/Polygon.js b/lib/OpenLayers/Geometry/Polygon.js index 199f3aa95e..2b7c21ef9d 100644 --- a/lib/OpenLayers/Geometry/Polygon.js +++ b/lib/OpenLayers/Geometry/Polygon.js @@ -76,10 +76,10 @@ OpenLayers.Geometry.Polygon.createRegularPolygon = function(origin, radius, side if(rotation) { angle += (rotation / 180) * Math.PI; } - var rotateAngle, x, y; + var rotatedAngle, x, y; var points = []; for(var i=0; i