apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.4k stars 19.61k forks source link

echarts地图散点图配合使用高德地图或者百度地图,保存图片功能的问题 #19340

Closed yuchuang0208 closed 10 months ago

yuchuang0208 commented 10 months ago

Version

5.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=effectScatter-bmap

Steps to Reproduce

echarts官网中的示例 地图散点图

Current Behavior

地图散点图+百度地图,toolbox.feature.saveAsImage,下载的图片没有地图背景,只有散点图,我在官网的例子中使用也不行。 全国主要城市空气质量 - 百度地图 (1) 是不支持背景还是需要其他的配置项??

Expected Behavior

下载的图片中有百度地图背景

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 10 months ago

@yuchuang0208 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. 🤗

TRANSLATED
**TITLE** When using echarts map scatter chart with Gaode map or Baidu map, there is a problem with the image saving function **BODY** ### Version 5.0 ### Link to Minimal Reproduction https://echarts.apache.org/examples/zh/editor.html?c=effectScatter-bmap ### Steps to Reproduce Examples from the official website of echarts Map scatter plot ### Current Behavior Map scatter map + Baidu map, toolbox.feature.saveAsImage, the downloaded picture has no map background, only scatter map, and I can't use it in the example of the official website. ![Air quality in major cities in China - Baidu map (1)](https://github.com/apache/echarts/assets/31911855/7aa82f42-718a-4a01-a1cb-a8eb4a856888) Does it support the background or do you need other configuration items?? ### Expected Behavior The downloaded image has a Baidu map background ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_
plainheart commented 10 months ago

高德/百度地图图层和 ECharts 图层互相独立,因此调用 ECharts 的导出 API 并不会包括地图底图,你可以结合使用 dom 转 image 之类的库来导出包括地图的图片。