Making it so you can remove more points from a linear ring. p=gregers, r=me (closes #2172)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -93,7 +93,7 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class(
|
||||
* point - {<OpenLayers.Geometry.Point>}
|
||||
*/
|
||||
removeComponent: function(point) {
|
||||
if (this.components.length > 4) {
|
||||
if (this.components.length > 3) {
|
||||
|
||||
//remove last point
|
||||
this.components.pop();
|
||||
|
||||
Reference in New Issue
Block a user