From 6fca6aef6067a84ccb5e142279e0bd0a0ec1c71e Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 20 Mar 2013 10:23:00 +0100 Subject: [PATCH] Addressing @bartvde's review comments --- examples/mobile-drawing.js | 2 +- lib/OpenLayers/Control/ModifyFeature.js | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/examples/mobile-drawing.js b/examples/mobile-drawing.js index 0d92e7a6e3..d598ff0a17 100644 --- a/examples/mobile-drawing.js +++ b/examples/mobile-drawing.js @@ -11,7 +11,7 @@ function init() { }, OpenLayers.Feature.Vector.style['default']), select: OpenLayers.Util.applyDefaults({ pointRadius: 16 - }, OpenLayers.Feature.Vector.style.select), + }, OpenLayers.Feature.Vector.style.select) }) }); diff --git a/lib/OpenLayers/Control/ModifyFeature.js b/lib/OpenLayers/Control/ModifyFeature.js index 1dba01c6c1..6b0c37ce7b 100644 --- a/lib/OpenLayers/Control/ModifyFeature.js +++ b/lib/OpenLayers/Control/ModifyFeature.js @@ -49,7 +49,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, { * Default is true. */ toggle: true, - + /** * APIProperty: standalone * {Boolean} Set to true to create a control without SelectFeature @@ -66,20 +66,26 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, { * {} */ layer: null, - + /** * Property: feature * {} Feature currently available for modification. */ feature: null, - + + /** + * Property: vertex + * {} Vertex currently being modified. + */ + vertex: null, + /** * Property: vertices * {Array()} Verticies currently available * for dragging. */ vertices: null, - + /** * Property: virtualVertices * {Array()} Virtual vertices in the middle @@ -92,7 +98,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, { * {Object} */ handlers: null, - + /** * APIProperty: deleteCodes * {Array(Integer)} Keycodes for deleting verticies. Set to null to disable @@ -107,7 +113,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, { * {Object} A symbolizer to be used for virtual vertices. */ virtualStyle: null, - + /** * APIProperty: vertexRenderIntent * {String} The renderIntent to use for vertices. If no is