Openlayers 修改交互仅在移动设备上短时间有效
Openlayers Modify interaction only works for a short time on mobile device
这里看官方例子,用移动设备打开:https://openlayers.org/en/latest/examples/draw-and-modify-features.html?q=edit然后尝试编辑一个多边形
拖动多边形顶点片刻后,交互停止响应。您仍然可以再次拖动它或拖动其他部分。
这是openlayers的bug吗?任何解决方法?
原来是Openlayers本身的问题。参见:https://github.com/openlayers/openlayers/issues/10910
解决方案也解决了这个问题,使用@ol/dev或者在映射div.
中添加一个touch-action: none
这里看官方例子,用移动设备打开:https://openlayers.org/en/latest/examples/draw-and-modify-features.html?q=edit然后尝试编辑一个多边形
拖动多边形顶点片刻后,交互停止响应。您仍然可以再次拖动它或拖动其他部分。
这是openlayers的bug吗?任何解决方法?
原来是Openlayers本身的问题。参见:https://github.com/openlayers/openlayers/issues/10910
解决方案也解决了这个问题,使用@ol/dev或者在映射div.
中添加一个touch-action: none