Merge pull request #9751 from logan-bounet/set-minarea-in-dragzoom

Add minArea typedef and ctor prop in DragZoom
This commit is contained in:
Frédéric Junod
2019-07-04 09:34:41 +02:00
committed by GitHub

View File

@@ -17,6 +17,8 @@ import DragBox from './DragBox.js';
* Default is {@link module:ol/events/condition~shiftKeyOnly}.
* @property {number} [duration=200] Animation duration in milliseconds.
* @property {boolean} [out=false] Use interaction for zooming out.
* @property {number} [minArea=64] The minimum area of the box in pixel, this value is used by the parent default
* `boxEndCondition` function.
*/
@@ -42,6 +44,7 @@ class DragZoom extends DragBox {
super({
condition: condition,
className: options.className || 'ol-dragzoom',
minArea: options.minArea,
onBoxEnd: onBoxEnd
});