2.22.0 scene.setBgColor 失效
问题描述
2.22.0 scene.setBgColor 失效 2.21.10 尚且有效
重现链接
No response
重现步骤
示例代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Leaflet Example</title>
<script src="https://unpkg.com/@antv/[email protected]/dist/l7.js"></script>
<!-- <script src="https://unpkg.com/@antv/[email protected]/dist/l7.js"></script> -->
<style>
#map {
min-height: 500px;
justify-content: center;
position: relative;
height: 780px;
width: 800px;
}
.button {
display: none;
}
</style>
</head>
<body>
<div id="app">
<div id="map"></div>
</div>
<script>
const scene = new L7.Scene({
id: "map",
map: new L7.Map({
center: [0, 0],
maxZoom: 14,
minZoom: 8,
pitchEnabled: false,
rotateEnabled: false,
}),
logoVisible: false,
});
scene.setBgColor("#D8D8D8");
</script>
</body>
</html>
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
2.22.0
2.21.10
补充说明(可选)
CDN引用
Hi @muyu66, Please star this repo if you find it useful! Thanks :star:! 你好~ @muyu66 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟
可先通过 CSS 样式设置,后续修复
Hello @muyu66, We totally like your proposal/feedback. welcome to send us a Pull Request to solve this problem and contribute to the open source project. After submitting the code, please send a Pull Request to the master branch. We will review it and look forward to your contribution.
你好 @muyu66,同意你的反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题,为开源项目贡献一份力量。提交代码后,请将 Pull Request 发到 master 分支,我们会进行 Review,期待您的贡献。

这个问题仍未修复,会导致空白图时全屏时背景为黑色。
可先通过 CSS 样式设置,后续修复
请问有修复计划了吗?CSS样式设置的话,具体是设置到哪一层呢?