Changeset 2334
- Timestamp:
- 03/05/07 14:32:32 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/vector-2.4/lib/OpenLayers/Geometry/Curve.js
r2322 r2334 12 12 OpenLayers.Geometry.Curve.prototype = 13 13 OpenLayers.Class.inherit(OpenLayers.Geometry, { 14 15 /** @type Array(OpenLayers.Geometry.Point) */ 16 path: null, 14 17 15 18 /** … … 30 33 31 34 this.bounds = this.getBounds(); 32 // this.bbox = new OpenLayers.Geometry.Rectangle();33 // this.bbox.geometry = this;34 35 }, 35 36 … … 58 59 */ 59 60 getBounds: function(){ 61 var bounds = null; 60 62 if (this.path.length > 0) { 61 63 var xmin, ymin, xmax, ymax = null; … … 75 77 } 76 78 } 77 var bounds = new OpenLayers.Bounds(xmin, ymin, xmax, ymax); 78 return bounds; 79 } else { 80 return null; 79 bounds = new OpenLayers.Bounds(xmin, ymin, xmax, ymax); 81 80 } 81 return bounds; 82 82 }, 83 83 … … 113 113 }, 114 114 115 /** 116 * @returns 117 * @type float 118 */ 115 119 getLength: function() { 116 120 return OpenLayers.Util.length(this.path); 117 121 }, 118 122 123 /** 124 * 125 */ 119 126 destroy: function () { 120 127 this.path.length = 0;
