Lower pixel tolerance to avoid accidental vertex deltion
This commit is contained in:
@@ -488,7 +488,7 @@
|
||||
/**
|
||||
* @typedef {Object} olx.interaction.ModifyOptions
|
||||
* @property {number|undefined} pixelTolerance Pixel tolerance for considering
|
||||
* the pointer close enough to a vertex for editing. Default is 20 pixels.
|
||||
* the pointer close enough to a vertex for editing. Default is 10 pixels.
|
||||
* @property {ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined} style FeatureOverlay style.
|
||||
* @property {ol.Collection} features The features the interaction works on.
|
||||
*/
|
||||
|
||||
@@ -87,7 +87,7 @@ ol.interaction.Modify = function(options) {
|
||||
* @private
|
||||
*/
|
||||
this.pixelTolerance_ = goog.isDef(options.pixelTolerance) ?
|
||||
options.pixelTolerance : 20;
|
||||
options.pixelTolerance : 10;
|
||||
|
||||
/**
|
||||
* @type {Array}
|
||||
|
||||
Reference in New Issue
Block a user