From fd4758ab09c2aea610780fac4eb54a7295c75028 Mon Sep 17 00:00:00 2001 From: A-Behairi Date: Wed, 18 Oct 2023 13:31:02 +0200 Subject: [PATCH 1/2] fix: fix double click on draw; close #256; --- elements/drawtools/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/drawtools/src/main.ts b/elements/drawtools/src/main.ts index 69cb9c057..e239db826 100644 --- a/elements/drawtools/src/main.ts +++ b/elements/drawtools/src/main.ts @@ -52,6 +52,7 @@ export class EOxDrawTools extends LitElement { this._eoxMap.addDraw(this._layerId, { id: "drawInteraction", type: "Polygon", + stopClick:true }); // @ts-ignore this._draw = this._eoxMap.interactions["drawInteraction"] as Draw; From fc730afc80aaca925aee2dca66155be729aebec2 Mon Sep 17 00:00:00 2001 From: A-Behairi Date: Wed, 18 Oct 2023 14:03:42 +0200 Subject: [PATCH 2/2] chore: fix format --- elements/drawtools/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/drawtools/src/main.ts b/elements/drawtools/src/main.ts index e239db826..1af3f4fb2 100644 --- a/elements/drawtools/src/main.ts +++ b/elements/drawtools/src/main.ts @@ -52,7 +52,7 @@ export class EOxDrawTools extends LitElement { this._eoxMap.addDraw(this._layerId, { id: "drawInteraction", type: "Polygon", - stopClick:true + stopClick: true, }); // @ts-ignore this._draw = this._eoxMap.interactions["drawInteraction"] as Draw;