MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / resizeEvent

Method resizeEvent

src/mapboxgl/overlay/theme/ThemeLayer.js:567–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

565 }
566
567 resizeEvent() {
568 this.mapContainer.style.perspective = this.map.transform.cameraToCenterDistance + 'px';
569 var canvas = this.map.getCanvas();
570 this.div.style.width = canvas.style.width;
571 this.div.style.height = canvas.style.height;
572 this.div.width = parseInt(canvas.width);
573 this.div.height = parseInt(canvas.height);
574 this.renderer.resize();
575 }
576
577 /**
578 * @function ThemeLayer.prototype.removeFromMap

Callers 1

Calls 2

getCanvasMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected