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

在加载3dtiles后测量工具点击的位置和鼠标位置有偏差 #2271

Open
zhouzhili opened this issue Apr 2, 2024 · 4 comments
Open

Comments

@zhouzhili
Copy link
Contributor

maptalks's version and what browser you use?

@maptalks/gl v0.97.4
@maptalks/vt v0.95.0
@maptalks/3dtiles v0.97.4
@maptalks/gltf-layer v0.97.4
@maptalks/transform-control v0.97.4
@maptalks/video-layer v0.97.4
@maptalks/analysis v0.97.4
@maptalks/transcoders.draco v0.97.4

Issue description

1742be11c1625ad32fad2f4b7c5385cb

Please provide a reproduction URL (on any jsfiddle like site)

@liubgithub
Copy link
Contributor

没有重现此问题,看截图那个cursor是自定义的,需要确保cursor的图标中心点在鼠标的位置

@zhouzhili
Copy link
Contributor Author

没有重现此问题,看截图那个cursor是自定义的,需要确保cursor的图标中心点在鼠标的位置

鼠标样式是 map.setCursor('crosshair')

@liubgithub
Copy link
Contributor

不改变鼠标样式,用默认鼠标样式会出现这个问题吗?

@zhouzhili
Copy link
Contributor Author

复现出来了,一种情况是加载的模型比较大,电脑卡的时候;另外一种是模型有一部分在地平线下面的时候。
官网测量示例里,设置 heightOffset: -430 的时候就能复现

image

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

No branches or pull requests

2 participants