Add a clickTolerance option to the Draw interaction
This commit is contained in:
@@ -265,7 +265,8 @@ ol.interaction.Draw = function(options) {
|
||||
* @type {number}
|
||||
* @private
|
||||
*/
|
||||
this.squaredClickTolerance_ = 4;
|
||||
this.squaredClickTolerance_ = goog.isDef(options.clickTolerance) ?
|
||||
options.clickTolerance * options.clickTolerance : 36;
|
||||
|
||||
/**
|
||||
* Draw overlay where our sketch features are drawn.
|
||||
|
||||
Reference in New Issue
Block a user