diff --git a/examples/draw-feature.html b/examples/draw-feature.html index 8c589442a2..aac87c9472 100644 --- a/examples/draw-feature.html +++ b/examples/draw-feature.html @@ -64,6 +64,14 @@ } } } + + function allowPan(element) { + var stop = !element.checked; + for(var key in drawControls) { + drawControls[key].handler.stopDown = stop; + drawControls[key].handler.stopUp = stop; + } + }
@@ -97,15 +105,20 @@ +With the point drawing control active, click on the map to add a point. You can drag the point - before letting the mouse up if you want to adjust the position.
+With the point drawing control active, click on the map to add a point.
With the line drawing control active, click on the map to add the points that make up your line. Double-click to finish drawing.
With the polygon drawing control active, click on the map to add the points that make up your polygon. Double-click to finish drawing.
+With any drawing control active, paning the map can still be achieved. Drag the map as + usual for that.
Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons in freehand mode, hold the mouse down and a point will be added with every mouse movement.