apache / echarts

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

Echarts地图渲染支持 TopoJSON 数据格式吗? #16729

Closed yswang0927 closed 2 years ago

yswang0927 commented 2 years ago

What problem does this feature solve?

目前 echarts 渲染地图使用的是 geojson数据,但是geojson数据体积很大,而 geojson 转为 TopoJSON 后数据体积减少80%左右,echarts 能使用 TopoJSON 渲染地图吗?

What does the proposed API look like?

echarts 能使用 TopoJSON 渲染地图吗?

echarts-bot[bot] commented 2 years ago

@yswang0927 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** Does Echarts map rendering support the TopoJSON data format? **BODY** ### What problem does this feature solve? At present, echarts uses geojson data to render maps, but geojson data is very large, and geojson is reduced by about 80% after switching to TopoJSON, can echarts use TopoJSON to render maps? ### What does the proposed API look like? Can echarts render maps using TopoJSON?
pissang commented 2 years ago

@yswang0927 ECharts 使用了自己的地图数据压缩方法,可以使用 https://github.com/echarts-maps/echarts-mapmaker#compress 这个社区贡献的命令行脚本进行数据压缩