From 7ecfca2ce2cfe4d9e863fbcec3f12529324ae708 Mon Sep 17 00:00:00 2001 From: AM_smart <330595524@qq.com> Date: Mon, 27 May 2019 10:27:55 +0800 Subject: [PATCH] =?UTF-8?q?When=20the=20polygon=20is=20changed,=20it=20is?= =?UTF-8?q?=20not=20emptied=20=EF=BC=88this.=5FrectShape=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove handlers add removeHooks: function() { this._rectShape = null; //Add this and you can try it. } --- src/Path.Transform.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Path.Transform.js b/src/Path.Transform.js index d2e56f7..6e1f77c 100644 --- a/src/Path.Transform.js +++ b/src/Path.Transform.js @@ -125,6 +125,7 @@ L.Handler.PathTransform = L.Handler.extend({ this._rect = null; this._handlers = []; this._handleLine = null; + this._rectShape = null; }, @@ -166,6 +167,7 @@ L.Handler.PathTransform = L.Handler.extend({ this._handlersGroup = null; this._rect = null; this._handlers = []; + this._rectShape = null; },