解决cesium地图鼠标点击不准确、偏移问题 #111
demaria-max
started this conversation in
Ideas
Replies: 1 comment
-
|
😘 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在项目中全局引入autofit后,cesium地图会因为transform适配导致鼠标点击事件不准,解决办法是重新修改ceiusm中的ScreenSpaceEventHandler中的getPosition方法,重新计算纠正点击位置。
通过npm引入的cesium包可能没有ScreenSpaceEventHandler.js文件
CustomScreenSpaceEventHandler.js
Beta Was this translation helpful? Give feedback.
All reactions