apache / echarts

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

[Bug] 地图实例demo下载本地运行地图不显示,无报错 #17232

Closed wulibaibao closed 4 months ago

wulibaibao commented 2 years ago

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. 进入链接
  2. 下载实例
  3. 本地运行,地图不显示

简单实例运行在React,nextjs都是一样效果,提供代码是有什么缺失吗?

Current Behavior

运行起来,跑到跟现实一样

Expected Behavior

运行起来地图可看到

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 2 years ago

@wulibaibao 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** [Bug] The map instance demo download and run the map locally does not display, no error is reported **BODY** ### Version 5.3.3 ### Link to Minimal Reproduction _No response_ ### Steps to Reproduce 1. Go to the link [](https://echarts.apache.org/examples/zh/editor.html?c=effectScatter-bmap) 2. Download the instance 3. Local operation, the map does not display The simple example runs in React, nextjs has the same effect, is there anything missing in the code provided? ### Current Behavior run, run like reality ### Expected Behavior When running, the map can be seen ### Environment ````markdown - OS: - Browser: - Framework: ```` ### Any additional comments? _No response_
wulibaibao commented 2 years ago

https://echarts.apache.org/examples/zh/editor.html?c=effectScatter-bmap 这个实例,地图是没人用吗,好像地图都没效果

jiawulin001 commented 2 years ago

Open the html file with IDE(like VScode), uncomment these lines: image And substitute the red block with your baidu api key, you can get one here.

w1377786019 commented 2 years ago

使用 IDE(如 VScode)打开 html 文件,取消注释这些行: 并将红色块替换为您的 baidu api 密钥,您可以在此处获取。 图片

vscode 用tsx里写 图表 在document.ejs 里边写这个百度APi key 地图还是无法出现

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 4 months ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!