From ea346a785dc1b3f7c156f6fc33da634e1f1a627b Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 12 Aug 2014 21:56:44 +0200 Subject: Adding jquery, flot and openlayers to be included with the GEM. --- misc/openlayers/examples/editing-methods.html | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 misc/openlayers/examples/editing-methods.html (limited to 'misc/openlayers/examples/editing-methods.html') diff --git a/misc/openlayers/examples/editing-methods.html b/misc/openlayers/examples/editing-methods.html new file mode 100644 index 0000000..5a28710 --- /dev/null +++ b/misc/openlayers/examples/editing-methods.html @@ -0,0 +1,58 @@ + + + + OpenLayers Editing Methods + + + + + + + + +

Editing Methods

+

+ Demonstrates the use of editing methods for manipulating geometries + while drawing. +

+
+ + +
+

+ The control.insertXY method inserts a point at the given + map coordinates (x, y) immediately prior to the most recent point + (under the mouse). + The control.insertDeltaXY method inserts a point at + the given offset values (dx, dy) from the previously added point. + The control.insertDirectionLength method inserts a + point at offset direction and length from the previously added point. + Direction is measured counter-clockwise from the positive x-axis. + The control.insertDeflectionLength method inserts a + point at offset deflection and length from the previously added point. + Deflection is measured counter-clockwise from the previous line + segment. + The control.finishSketch method completes the current + sketch without adding the point under the user's mouse. This + allows a sketch to be finished without a double-click. + The control.cancel method discards the current + sketch and leaves the control active. + The control.insertXY method may be called before + any points are digitized manually. The other methods have no + effect until at least one point has been added to the sketch. +

+ View the editing-methods.js + source to see how this is done. +

+
+ + + + -- cgit v1.2.3