|
@@ -630,7 +630,9 @@ map2DViewer.setDrawTool = function (options) {
|
|
|
this.map.off("draw-result", map2DViewer.drawToolFire);
|
|
|
if (this.measureTool) {
|
|
|
// 移除绘制的图形
|
|
|
- this.measureTool._measureGroup.remove();
|
|
|
+ this.measureTool._measureGroup &&
|
|
|
+ this.measureTool._measureGroup.remove();
|
|
|
+
|
|
|
mousemoveStatus = false;
|
|
|
map2DViewer.map.doubleClickZoom.disable();
|
|
|
map2DViewer.map.off("click");
|