【发布时间】:2019-03-05 04:22:03
【问题描述】:
有没有办法动态改变 Openlayers 中的交互?我设置交互
import {defaults as defaultInteractions} from 'ol/interaction.js';
var interactions = defaultInteractions({
constrainResolution: true,
onFocusOnly: true,
doubleClickZoom: false,
altShiftDragRotate:false,
pinchRotate:false
});
但是假设我想要一个用户按钮,他们可以在其中打开(或切换)pinchRotate?我已经尝试用一千种不同的方式搜索这个问题,但似乎无法在地图渲染后找到如何修改交互。
【问题讨论】:
标签: openlayers-5