Commit 4315ff61 by liimin

fix(monitor/zoneCar): 修复绘制取消后地图拖拽未恢复的问题

为绘制管理器添加overlaycancel事件监听,在绘制取消时重新启用地图拖拽
1 parent 40e66259
......@@ -325,6 +325,13 @@ export default {
mapService.mapInstance.enableDragging();
}
);
MAP.invoke(
"drawingManagerAddEventListener",
"overlaycancel",
function (e) {
mapService.mapInstance.enableDragging();
}
);
// 绘制期间禁用地图拖动/滚轮,避免冲突
mapService.mapInstance.disableDragging();
MAP.invoke("setDrawingMode", "rectangle");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!