You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Lienviws (via GitHub)" <gi...@apache.org> on 2025/09/19 10:38:42 UTC

[I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Lienviws opened a new issue, #21278:
URL: https://github.com/apache/echarts/issues/21278

   ### Version
   
   6
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/sandbox/sparkling-sea-kkq7rz
   
   ### Steps to Reproduce
   
   打开上面提供的[代码地址](https://codesandbox.io/p/sandbox/sparkling-sea-kkq7rz),即可复现
   
   ### Current Behavior
   
   我在我的项目中今天突然发现,百度地图加载不出来地图块。
   为了最小复现,我基于echart官网百度地图demo的代码,稍作修改(echart版本改为6,以及填入了示例ak)
   并上传到了codesandbox中,打开即可复现。
   
   我简单分析了下原因,是 https://api.map.baidu.com/customimage/tile 这个地址返回了502。不知道是百度不维护了,还是服务器出了问题,我不知道怎么联系百度地图开放平台的工作人员,因此在这里提出issues,希望echarts工作人员可以通过内部渠道反馈。
   
   百度地图官网的demo都是用的 webgl 看着正常,但是echarts不支持BMapGL,仅支持Bmap的方式。因此这个问题目前我不知道如何解决。
   
   ### Expected Behavior
   
   期望百度地图的服务可以恢复。如果官方对v3弃坑了,期望echarts可以支持webgl的方式,好有解决方案让业务可以恢复
   
   ### Environment
   
   ```markdown
   - OS: macOS 15.6.1
   - Browser: Chrome
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Posted by "Lienviws (via GitHub)" <gi...@apache.org>.
Lienviws commented on issue #21278:
URL: https://github.com/apache/echarts/issues/21278#issuecomment-3317069056

   这个方法有用,感谢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #21278:
URL: https://github.com/apache/echarts/issues/21278#issuecomment-3312642051

   Yes, some tiles are not loading in your example.
   Status of all ECharts **map extensions**, as of now:
   - [bmap](https://github.com/apache/echarts/blob/master/dist/extension/bmap.js) for Baidu maps is still there but problematic
   - [gmap](https://github.com/plainheart/echarts-extension-gmap) for Google maps, see [demo code](https://codepen.io/plainheart/pen/VweLGbR)
   - [amap](https://github.com/plainheart/echarts-extension-amap) for Gaode maps, see [demo code](https://codepen.io/plainheart/pen/qBbdNYx)  🏆
   - [leaflet](https://github.com/gnijuohz/echarts-leaflet), abandoned project but there is a [fixed version](https://cdn.jsdelivr.net/gh/helgasoft/echarty@main/inst/js/echarts-leaflet.js), see [demo code](https://codepen.io/helgasoft/pen/GRGqZeR)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #21278:
URL: https://github.com/apache/echarts/issues/21278#issuecomment-3313395889

   看到你的示例代码中配置的是旧版 mapStyle 样式,此样式百度地图已经不再维护,建议使用 mapStyleV2 启用百度地图3.0的新版自定义样式,见 https://lbsyun.baidu.com/index.php?title=open/custom


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Posted by "Lienviws (via GitHub)" <gi...@apache.org>.
Lienviws commented on issue #21278:
URL: https://github.com/apache/echarts/issues/21278#issuecomment-3311685877

   补充截图
   <img width="2059" height="1111" alt="Image" src="https://github.com/user-attachments/assets/3022ff5a-6bdf-4e27-915d-23261aff81a9" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #21278:
URL: https://github.com/apache/echarts/issues/21278#issuecomment-3311709367

   @Lienviws It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] In the echart example, the color blocks cannot be displayed using the Baidu map.
   
   **BODY**
   
   ### Version
   
   6
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/sandbox/sparkling-sea-kkq7rz
   
   ### Steps to Reproduce
   
   Open the [code address](https://codesandbox.io/p/sandbox/sparkling-sea-kkq7rz) provided above to reproduce
   
   ### Current Behavior
   
   I suddenly found today in my project that Baidu Maps cannot load map blocks.
   For minimal reproduction, I made slight modifications based on the code of Baidu Map Demo on the echart official website (echart version was changed to 6, and the sample ak was filled)
   And upload it to the codesandbox, open it to reproduce.
   
   I briefly analyzed the reason, it was https://api.map.baidu.com/customimage/tile This address returned 502. I don't know if Baidu is not maintained, or if there is a problem with the server, I don't know how to contact the staff of Baidu Maps Open Platform, so I raised issues here, hoping that echarts staff can give feedback through internal channels.
   
   The demo on the official website of Baidu Map is all using webgl and looks normal, but echarts does not support BMapGL, only supports Bmap method. So I don't know how to solve this problem at the moment.
   
   ### Expected Behavior
   
   It is expected that Baidu Maps' service can be restored. If the official abandons v3, it is expected that echarts can support WebGL, so that there is a solution to restore the business
   
   ### Environment
   
   ```markdown
   - OS: macOS 15.6.1
   - Browser: Chrome
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] echart 示例中,使用加载百度地图显示不出来色块 [echarts]

Posted by "Lienviws (via GitHub)" <gi...@apache.org>.
Lienviws closed issue #21278: [Bug] echart 示例中,使用加载百度地图显示不出来色块
URL: https://github.com/apache/echarts/issues/21278


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org