#915 geometry manipulations need to call clearBounds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -128,6 +128,7 @@ OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, {
|
||||
move: function(x, y) {
|
||||
this.x = this.x + x;
|
||||
this.y = this.y + y;
|
||||
this.clearBounds();
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -144,6 +145,7 @@ OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, {
|
||||
var theta = angle + Math.atan2(this.y - origin.y, this.x - origin.x);
|
||||
this.x = origin.x + (radius * Math.cos(theta));
|
||||
this.y = origin.y + (radius * Math.sin(theta));
|
||||
this.clearBounds();
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -160,7 +162,9 @@ OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, {
|
||||
*/
|
||||
resize: function(scale, origin) {
|
||||
this.x = origin.x + (scale * (this.x - origin.x));
|
||||
|
||||
this.y = origin.y + (scale * (this.y - origin.y));
|
||||
this.clearBounds();
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Geometry.Point"
|
||||
|
||||
Reference in New Issue
Block a user