antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.
https://l7.antv.antgroup.com
MIT License
3.67k stars 636 forks source link

2.22.0 scene.setBgColor 失效 #2549

Open muyu66 opened 5 months ago

muyu66 commented 5 months ago

问题描述

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/l7@2.22.0/dist/l7.js"></script>
    <!-- <script src="https://unpkg.com/@antv/l7@2.21.10/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

平台

屏幕截图或视频(可选)

2.22.0 image

2.21.10 image

补充说明(可选)

CDN引用

<script src="https://unpkg.com/@antv/l7@2.21.10/dist/l7.js"></script>
github-actions[bot] commented 5 months ago

Hi @muyu66, Please star this repo if you find it useful! Thanks :star:! 你好~ @muyu66 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟

lvisei commented 5 months ago

可先通过 CSS 样式设置,后续修复

github-actions[bot] commented 5 months ago

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,期待您的贡献。

giphy