【发布时间】:2015-11-25 23:13:25
【问题描述】:
我想在释放鼠标按钮而不是双击时完成绘图。我怎样才能做到这一点?
现在我默认使用此代码在 Openlayers drawing feature 上激活手绘:
draw = new ol.interaction.Draw({
source: drawLayerSource,
type: 'LineString',
condition: ol.events.condition.singleClick,
freehandCondition: ol.events.condition.noModifierKeys
});
map.addInteraction(draw);
但我不知道如何避免双击完成线串并改用鼠标释放。
【问题讨论】:
标签: javascript draw openlayers-3