mirror of https://gitee.com/antv-l7/antv-l7
chore(map): remove l7 map container
This commit is contained in:
parent
b60e1d6f95
commit
ecd6b5cf6f
|
@ -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] {
|
||||||
|
|
Loading…
Reference in New Issue