-
Notifications
You must be signed in to change notification settings - Fork 633
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
当地图有有面图层填充时,绘制组件在面上绘制不出现。 #2025
Labels
Comments
看上去不是 zIndex 的问题,而是渲染层级的问题 |
那里面有没有办法设置层级呢,就像图层那样可以设置层级 |
water layer 的zIndex 先设置为 负数如-1 const lakeLayer = new PolygonLayer({ autoFit: true,zIndex:-1 }) |
const drawControl = new DrawControl(scene, {
position: 'topright',
commonDrawOptions: {
style: {
point: {
options: {
zIndex: 1000,
},
},
line: {
options: {
zIndex: 1000,
},
},
polygon: {
options: {
zIndex: 1000,
},
},
dashLine: {
options: {
zIndex: 1000,
},
},
midPoint: {
options: {
zIndex: 1000,
},
},
},
},
}); |
|
This was referenced Nov 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当地图上有填充的面图层时,绘制组件在面图层上面被覆盖了,在面图层外面是可以看到。
https://codesandbox.io/s/tender-forest-l4h4sn?file=/src/index.mjs 这是地址麻烦看下
The text was updated successfully, but these errors were encountered: