added minArea to test

This commit is contained in:
Matthias Kretschmar
2017-09-18 09:39:52 +02:00
parent 609f1756c7
commit fa5cd19657

View File

@@ -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];