chore(map): remove l7 map container

This commit is contained in:
thinkinggis 2020-07-23 15:11:29 +08:00
parent b60e1d6f95
commit ecd6b5cf6f
1 changed files with 8 additions and 8 deletions

View File

@ -119,7 +119,7 @@ export class Map extends Camera {
const width = dimensions[0]; const width = dimensions[0];
const height = dimensions[1]; const height = dimensions[1];
this.resizeCanvas(width, height); // this.resizeCanvas(width, height);
this.transform.resize(width, height); this.transform.resize(width, height);
const fireMoving = !this.moving; const fireMoving = !this.moving;
if (fireMoving) { if (fireMoving) {
@ -339,13 +339,13 @@ export class Map extends Camera {
canvasContainer.classList.add('l7-interactive'); canvasContainer.classList.add('l7-interactive');
} }
this.canvas = DOM.create( // this.canvas = DOM.create(
'canvas', // 'canvas',
'l7-canvas', // 'l7-canvas',
canvasContainer, // canvasContainer,
) as HTMLCanvasElement; // ) as HTMLCanvasElement;
this.canvas.setAttribute('tabindex', '-'); // this.canvas.setAttribute('tabindex', '-');
this.canvas.setAttribute('aria-label', 'Map'); // this.canvas.setAttribute('aria-label', 'Map');
} }
private containerDimensions(): [number, number] { private containerDimensions(): [number, number] {