Changeset 2692
- Timestamp:
- 03/12/07 01:41:23 (2 years ago)
- Files:
-
- sandbox/vector-2.4/examples/draw-feature.html (modified) (1 diff)
- sandbox/vector-2.4/lib/OpenLayers/Handler/Path.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/vector-2.4/examples/draw-feature.html
r2685 r2692 33 33 map.addControl(new OpenLayers.Control.MousePosition()); 34 34 35 var options = {handlerOptions: {freehand: true}}; 35 36 drawControls = { 36 37 point: new OpenLayers.Control.DrawFeature(pointLayer, 37 38 OpenLayers.Handler.Point), 38 39 line: new OpenLayers.Control.DrawFeature(lineLayer, 39 OpenLayers.Handler.Path ),40 OpenLayers.Handler.Path, options), 40 41 polygon: new OpenLayers.Control.DrawFeature(polygonLayer, 41 OpenLayers.Handler.Polygon )42 OpenLayers.Handler.Polygon, options) 42 43 }; 43 44 sandbox/vector-2.4/lib/OpenLayers/Handler/Path.js
r2685 r2692 29 29 * @type Boolean 30 30 */ 31 freehand: true,31 freehand: false, 32 32 33 33 /**
