I'm using OpenLayers-3.8.2. I have a draw Ineraction
as follow:
function drawEnd(){
map.removeInteraction(drawIneraction).
}
var drawInteraction = new ol.interaction.Draw({
source: mysource,
type: 'LineString'
});
drawInteraction.on('drawend', drawEnd);
map.addInteraction(drawInteraction);
I want to user draw just one feature. This Code work, but when user draw a feature, map zoom in 2 level.
How can I prevent zooming in?