Add condition to draw interaction

This commit is contained in:
tsauerwein
2014-06-06 15:39:44 +02:00
parent 0a939c6554
commit d0e818e8ce
3 changed files with 38 additions and 6 deletions

View File

@@ -1647,7 +1647,8 @@ olx.interaction.DragZoomOptions.prototype.style;
* type: ol.geom.GeometryType,
* minPointsPerRing: (number|undefined),
* style: (ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined),
* geometryName: (string|undefined)}}
* geometryName: (string|undefined),
* condition: (ol.events.ConditionType|undefined)}}
* @todo api
*/
olx.interaction.DrawOptions;
@@ -1704,6 +1705,15 @@ olx.interaction.DrawOptions.prototype.style;
olx.interaction.DrawOptions.prototype.geometryName;
/**
* A conditional modifier (e.g. shift key) that determines if the interaction is
* active (i.e. a click adds a vertex) or not. By default, a click with no modifier
* keys adds a vertex.
* @type {ol.events.ConditionType|undefined}
*/
olx.interaction.DrawOptions.prototype.condition;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined),
* pixelDelta: (number|undefined)}}