diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts index 794c837..39ce9b5 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts @@ -328,6 +328,11 @@ export class GetOutOfLineDetailsComponent implements OnInit { ); } this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight); + let imgBg: any = document.getElementById("img"); + const img = new Image(); + img.src = imgBg.src; + const canvas: any = document.querySelector("#canvas"); + this.ctx.drawImage(img, 0, 0, canvas.width, canvas.height); this.strokeRect(this.currentCoordinate); }