-
Notifications
You must be signed in to change notification settings - Fork 506
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
当地图放大到大的级别时,绘制的线或者面,位置不准确 #721
Labels
Comments
然后我基于 examples 里的 helloLayer ,做了一个示例 |
感谢报告。 这是个重要的bug,我会尽快对应 |
初步判定是点在相机(近剪裁面)之后,且点的投影点高度大于相机高度,投影矩阵计算不正确导致的(所以只在高级别出现) 貌似是个比较纯粹的数学问题 (hmm...) |
下午研究了一下这个问题,主要原因如下:
解决办法如下:
我修改了一下程序,目前VectorLayer中的绘制开启了clip后绘制就正常了,但在下面两种情况仍会出现问题:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maptalks's version and what browser you use?
Issue description
当地图放大到大的级别时,绘制的线或者面,位置不准确
http://jsfiddle.net/fjqwuaop/20/ (左右移动地图或者旋转地图试试)
当pitch 调整的越大,误差越大
绘制的线,和面出现偏移,这里的数据我是采取的几个道路经纬度,
按正常的绘制结果,应该和底图的道路重合。
然后我把pitch调整为0 ,在尝试移动地图,旋转地图,这时绘制的结果是正确的;
当zoom小的时候,是不存在该问题的
Please provide a reproduction URL (on any jsfiddle like site)
The text was updated successfully, but these errors were encountered: