OpenLayers OpenLayers

Changeset 2692

Show
Ignore:
Timestamp:
03/12/07 01:41:23 (2 years ago)
Author:
tschaub
Message:

freehand mode is off by default - draw-feature.html example shows how to change this when adding controls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-2.4/examples/draw-feature.html

    r2685 r2692  
    3333            map.addControl(new OpenLayers.Control.MousePosition()); 
    3434             
     35            var options = {handlerOptions: {freehand: true}}; 
    3536            drawControls = { 
    3637                point: new OpenLayers.Control.DrawFeature(pointLayer, 
    3738                            OpenLayers.Handler.Point), 
    3839                line: new OpenLayers.Control.DrawFeature(lineLayer, 
    39                             OpenLayers.Handler.Path), 
     40                            OpenLayers.Handler.Path, options), 
    4041                polygon: new OpenLayers.Control.DrawFeature(polygonLayer, 
    41                             OpenLayers.Handler.Polygon
     42                            OpenLayers.Handler.Polygon, options
    4243            }; 
    4344             
  • sandbox/vector-2.4/lib/OpenLayers/Handler/Path.js

    r2685 r2692  
    2929     * @type Boolean 
    3030     */ 
    31     freehand: true, 
     31    freehand: false, 
    3232     
    3333    /**