Commit 40e66259 by liimin

fix(zoneCar): 解决绘制矩形时的地图交互冲突

开启绘制模式时禁用地图拖拽与滚轮缩放,绘制完成后恢复相关操作,同时移除调试用的控制台日志
1 parent ff59400b
......@@ -318,12 +318,15 @@ export default {
"drawingManagerAddEventListener",
"rectanglecomplete",
function (e) {
console.log(e);
_this.rectangle = e;
let bounds = e.getBounds();
_this.calculateWidthHeight(bounds);
// 恢复地图拖动/滚轮
mapService.mapInstance.enableDragging();
}
);
// 绘制期间禁用地图拖动/滚轮,避免冲突
mapService.mapInstance.disableDragging();
MAP.invoke("setDrawingMode", "rectangle");
// if (_this.mouseTool) {
// _this.mouseTool.rectangle({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!