Fix typo causing empty Polygon geometry

See OpenLayers issue 789, var 'points' needs to be passed, not 'components' at line 649.
This commit is contained in:
Just van den Broecke
2012-12-08 14:44:45 +01:00
parent 1b1e90c268
commit 1225c817b4

View File

@@ -646,7 +646,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
}
components.push(
new OpenLayers.Geometry.Polygon(
[new OpenLayers.Geometry.LinearRing(components)]
[new OpenLayers.Geometry.LinearRing(points)]
)
);
}