We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
这是一个缺陷
缩放浏览器时mapvLayer会根据devicePixelRatio进行缩放,拖动地图时会对mapv元素进行重绘,因为context的缩放导致部分元素在clear时清除不掉
目前的解决办法是: clear时将width和height同时除以缩放比例就能解决此问题
The text was updated successfully, but these errors were encountered:
谢谢报告的缺陷。 问题已经重现,浏览器缩放比例不是100%时有两个问题 ,1、绘制位置偏移; 2 、从浏览器边界移入时部分要素没有清除。 第一个问题引起原因应该是地理坐标转像素坐标时未考虑devicePixelRatio。 第二个问题,您的暂时解决办法是“clear时将width和height同时除以缩放比例就能解决此问题”,可以看下是否是在创建context时宽高就没有缩放。 iclient for openlayers未重现该问题,相关逻辑可以参照修改,保持一致。
Sorry, something went wrong.
@zhang6685979 定位分析问题很到位,是否可以提交一个PR?
PR
No branches or pull requests
Request a feature or report a bug? [这是一个需求还是一个缺陷]
这是一个缺陷
One-line summary [问题简述]
缩放浏览器时mapvLayer会根据devicePixelRatio进行缩放,拖动地图时会对mapv元素进行重绘,因为context的缩放导致部分元素在clear时清除不掉
Version [产品及版本]
Actual Behavior [当前现象]
Expected Behavior [期望现象]
Example of reproducing the issue [重现现象的例子]
目前的解决办法是:
clear时将width和height同时除以缩放比例就能解决此问题
What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]
The text was updated successfully, but these errors were encountered: