Skip to content

【SDK】【cesium】【解决二三维mapv图层切换导致的画布大小变化问题】#124

Merged
ParnDeedlit merged 1 commit into
masterfrom
826_to_master
Nov 4, 2021
Merged

【SDK】【cesium】【解决二三维mapv图层切换导致的画布大小变化问题】#124
ParnDeedlit merged 1 commit into
masterfrom
826_to_master

Conversation

@zhangying-zy618
Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +284 to +288
canvas.height =
parseInt(this.map.canvas.height) ||
parseInt(this.map.container.offsetHeight);
canvas.style.width = parseInt(this.map.container.offsetWidth) + "px";
canvas.style.height = parseInt(this.map.container.offsetHeight) + "px";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请修改成考虑屏幕分辨率的情形

@ParnDeedlit ParnDeedlit merged commit 0995c28 into master Nov 4, 2021
@ParnDeedlit ParnDeedlit deleted the 826_to_master branch November 4, 2021 01:28
mayuanye2008 pushed a commit that referenced this pull request May 17, 2023
【SDK】【cesium】【解决二三维mapv图层切换导致的画布大小变化问题】
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants