From a2c299727496c844513ee351854c6a99c95c9a63 Mon Sep 17 00:00:00 2001 From: youxj Date: Thu, 25 Apr 2024 16:48:32 +0800 Subject: [PATCH] =?UTF-8?q?'=E4=BF=AE=E5=A4=8D=E5=9B=A0=E5=8F=8C=E5=87=BB?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8E=A7=E5=88=B6=E7=82=B9=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=97=A0=E6=B3=95=E6=8B=96=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base.ts b/src/base.ts index e8680e5..7adc7f5 100644 --- a/src/base.ts +++ b/src/base.ts @@ -131,6 +131,9 @@ export default class Base { this.disableDrag(); // Trigger 'drawEnd' and return the geometry shape points when exiting the edit mode. 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') { //When drawing multiple shapes, the click events for all shapes are triggered. Only when hitting a completed shape should it enter editing mode.