From ecd6b5cf6f049ace67f94c8bd5ec66cd6553c3c4 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Thu, 23 Jul 2020 15:11:29 +0800 Subject: [PATCH] chore(map): remove l7 map container --- packages/map/src/map.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/map/src/map.ts b/packages/map/src/map.ts index 13708fbeec..6865dee993 100644 --- a/packages/map/src/map.ts +++ b/packages/map/src/map.ts @@ -119,7 +119,7 @@ export class Map extends Camera { const width = dimensions[0]; const height = dimensions[1]; - this.resizeCanvas(width, height); + // this.resizeCanvas(width, height); this.transform.resize(width, height); const fireMoving = !this.moving; if (fireMoving) { @@ -339,13 +339,13 @@ export class Map extends Camera { canvasContainer.classList.add('l7-interactive'); } - this.canvas = DOM.create( - 'canvas', - 'l7-canvas', - canvasContainer, - ) as HTMLCanvasElement; - this.canvas.setAttribute('tabindex', '-'); - this.canvas.setAttribute('aria-label', 'Map'); + // this.canvas = DOM.create( + // 'canvas', + // 'l7-canvas', + // canvasContainer, + // ) as HTMLCanvasElement; + // this.canvas.setAttribute('tabindex', '-'); + // this.canvas.setAttribute('aria-label', 'Map'); } private containerDimensions(): [number, number] {