Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用maptalksgl插件中的GroupGLLayer后ThreeRenderer中的函数resizeCanvas总是被调用,尺寸调整鼠标拾取异常 #538

Open
gisshare2015 opened this issue Sep 22, 2022 · 1 comment

Comments

@gisshare2015
Copy link

gisshare2015 commented Sep 22, 2022

使用maptalksgl插件中的GroupGLLayer后:
1.无论尺寸是否变化ThreeRenderer中的函数resizeCanvas总是被调用;
2.即便无论尺寸是否变化,函数resizeCanvas中的“if (canvas.width === width && canvas.height === height)”永远为TURE,后面代码不会被执行,导致尺寸变化后点选出现问题(鼠标无法拾取图形)。
当前修正方案:
image

@gisshare2015 gisshare2015 changed the title 使用maptalksgl插件中的GroupGLLayer后ThreeRenderer中的函数resizeCanvas总是被调用(不知是否有问题) Sep 22, 2022
@gisshare2015 gisshare2015 changed the title 使用maptalksgl插件中的GroupGLLayer后ThreeRenderer中的函数resizeCanvas总是被调用 Sep 22, 2022
@deyihu
Copy link
Collaborator

deyihu commented Sep 22, 2022

@gisshare2015
1.这个是groupgl设计就是这样
2.问题2,我把width/height调整过来后,没法测试你说的拾取问题,能否具体点(重现代码或者录个视屏等)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants