Add condition to draw interaction
This commit is contained in:
@@ -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)}}
|
||||
|
||||
Reference in New Issue
Block a user