in src/globemap.ts [1002:1030]
public update(options: VisualUpdateOptions): void {
if (options.dataViews === undefined || options.dataViews === null) {
return;
}
this.layout.viewport = options.viewport;
this.root.css(this.layout.viewportIn);
this.controlContainer.setAttribute("style",
`display: ${this.layout.viewportIn.height > GlobeMap.ZoomControlSettings.height
&& this.layout.viewportIn.width > GlobeMap.ZoomControlSettings.width
? null : "none"}`);
if (this.layout.viewportChanged) {
if (this.camera && this.renderer) {
this.camera.aspect = this.layout.viewportIn.width / this.layout.viewportIn.height;
this.camera.updateProjectionMatrix();
this.renderer.setSize(this.layout.viewportIn.width, this.layout.viewportIn.height);
this.renderer.render(this.scene, this.camera);
}
}
if (options.type === GlobeMap.ChangeDataType || options.type === GlobeMap.ChangeAllType) {
this.cleanHeatAndBar();
const data: GlobeMapData = GlobeMap.converter(options.dataViews[0], this.colors, this.visualHost);
if (data) {
this.data = data;
this.renderMagic();
}
}
}