let fireLineLatLngs = [] if (this.drawControl.drawingLayer !== undefined) { this.drawControl.handler.disable(); this.plotting.getDefaultStyle().lineColor = "#ff89e2" this.drawControl.handler.libID = 0 this.plotting.getDefaultStyle().lineWidth = 2 this.drawControl.handler.code = 1003 this.drawControl.handler.serverUrl = this.serverUrl; this.drawControl.handler.enable() this.drawControl.on("featureadded", (e) => { this.drawControl.handler.disable();
}
这就是绘制的代码