<!-- 引入 -->
import DoubleClickZoom from 'ol/interaction/DoubleClickZoom';
let that = this
const dblClickInteraction = that.map
.getInteractions()
.getArray()
.find(interaction => {
return interaction instanceof DoubleClickZoom;
});
that.map.removeInteraction(dblClickInteraction);
openlayers 5 禁用双击放大事件
最新推荐文章于 2024-05-28 22:30:00 发布