仅使用鼠标中键的Openlayer平移

时间:2019-03-13 10:41:59

标签: mouseevent openlayers openlayers-3

我只需要使用拖动鼠标中键为openlayer(ol3)地图构建自定义平移。这就是我所需要的。

new ol.interaction.DragPan({
  condition: function(event) {
     // return event.originalEvent.ctrlKey
    //  need event for mouse middle key instated of ctrl
  }
});

有什么建议吗?

注意:类似的问题是Openlayers middle mouse button panning,没有答案

0 个答案:

没有答案
相关问题