diff --git a/src/utils/cesiumPluginsExtends/libs/Draw.js b/src/utils/cesiumPluginsExtends/libs/Draw.js index 16df865..bafaa55 100644 --- a/src/utils/cesiumPluginsExtends/libs/Draw.js +++ b/src/utils/cesiumPluginsExtends/libs/Draw.js @@ -839,7 +839,7 @@ Draw.prototype = { }, // 移除所以handler 监听 removeEventHandler() { - if(drawHandler){ + if(drawHandler&&!drawHandler.isDestroyed()){ drawHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE) drawHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK) drawHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK) //移除事件