diff --git a/types/openlayers/index.d.ts b/types/openlayers/index.d.ts index bd3a90a3c9..351146d884 100644 --- a/types/openlayers/index.d.ts +++ b/types/openlayers/index.d.ts @@ -12436,11 +12436,13 @@ declare module olx { /** * @typedef {{className: (string|undefined), * condition: (ol.EventsConditionType|undefined), + * minArea: (number|undefined), * boxEndCondition: (ol.DragBoxEndConditionType|undefined)}} */ interface DragBoxOptions { className?: string; condition?: ol.EventsConditionType; + minArea?: number; boxEndCondition?: ol.DragBoxEndConditionType; } diff --git a/types/openlayers/openlayers-tests.ts b/types/openlayers/openlayers-tests.ts index 78cd6fb556..3ebea5f095 100644 --- a/types/openlayers/openlayers-tests.ts +++ b/types/openlayers/openlayers-tests.ts @@ -695,6 +695,7 @@ draw = new ol.interaction.Draw({ let dragbox: ol.interaction.DragBox = new ol.interaction.DragBox({ className: stringValue, + minArea: 10, condition: ol.events.condition.always, boxEndCondition: function (mapBrowserEvent: ol.MapBrowserEvent, startPixel: ol.Pixel, endPixel: ol.Pixel) { let width: number = endPixel[0] - startPixel[0];