Changeset 1777
- Timestamp:
- 11/08/06 10:43:17 (2 years ago)
- Files:
-
- sandbox/bertil/examples/vector.html (modified) (1 diff)
- sandbox/bertil/lib/OpenLayers/Feature/Geometry/Curve.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/bertil/examples/vector.html
r1775 r1777 20 20 toolbar = new OpenLayers.Control.EditionToolbar(); 21 21 navigation = new OpenLayers.Control.MouseDefaults(); 22 selection = new OpenLayers.Control.Edition.Selection() 22 selection = new OpenLayers.Control.Edition.Selection(); 23 23 drawLinearPath = new OpenLayers.Control.Edition.DrawLinearPath(); 24 24 toolbar.addTools([navigation, selection, drawLinearPath]); sandbox/bertil/lib/OpenLayers/Feature/Geometry/Curve.js
r1775 r1777 45 45 46 46 addPoint: function(point, index) { 47 if(point .CLASS_NAME == "OpenLayers.Feature.Geometry.Point"){47 if(point && point.CLASS_NAME == "OpenLayers.Feature.Geometry.Point"){ 48 48 if (index) { 49 49 this.path = this.path.slice(0, index).concat([point]).concat(this.path.slice(index, (this.path.length - 1)));
