'修复因双击编辑控制点导致地图无法拖动问题'

This commit is contained in:
youxj 2024-04-25 16:48:32 +08:00
parent b03c6d22f6
commit a2c2997274

View File

@ -131,6 +131,9 @@ export default class Base {
this.disableDrag(); this.disableDrag();
// Trigger 'drawEnd' and return the geometry shape points when exiting the edit mode. // Trigger 'drawEnd' and return the geometry shape points when exiting the edit mode.
this.eventDispatcher.dispatchEvent('editEnd', this.getPoints()); this.eventDispatcher.dispatchEvent('editEnd', this.getPoints());
// Fix the issue of map can`t to be dragged due to double clicking control points
this.viewer.scene.screenSpaceCameraController.enableRotate = true;
} }
} else if (this.state === 'static') { } else if (this.state === 'static') {
//When drawing multiple shapes, the click events for all shapes are triggered. Only when hitting a completed shape should it enter editing mode. //When drawing multiple shapes, the click events for all shapes are triggered. Only when hitting a completed shape should it enter editing mode.