Open layers3 drag box interaction not pointing correctly

المشرف العام

Administrator
طاقم الإدارة
I am using open layer 3.9.0. I Want to add and remove dragZoom and dragBox interactions in openlayers3 map dynamically.

dragBoxvar dragBox = new ol.interaction.DragBox({ condition: ol.events.condition.always, style: new ol.style.Style({ stroke: new ol.style.Stroke({ color: [0, 0, 255, 1] }) }) });In jquery for button click event

$('#box').click(function(){ map.addInteraction(dragBox);})When this event triggered using button the cursor and the box are not at same position.



So why this is happen, how to overcome this..?Help me to figure this out. Thank you



أكثر...
 
أعلى