apache / echarts

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

mapbox 结合时 label 不能使用 #13354

Closed succulen-plants closed 1 year ago

succulen-plants commented 4 years ago

Version

4.9.0

Steps to reproduce

VM8041 echarts-gl.min.js:1 Uncaught TypeError: Cannot read property '0' of undefined

   series: [{
           type: 'map3D',
           coordinateSystem: 'mapbox3D',
           map: 'china',
           regionHeight: 0.5,
           shading: 'lambert',
           label:{show: true}
       }]

What is expected?

加载的3D建筑上面有标签显示

What is actually happening?

报错

echarts-bot[bot] commented 4 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

succulen-plants commented 4 years ago

而且, click 事件也获取不到, chart.on('click', function (params) { }); 只是使用mapbox 提供了地图, 不理解为什么点击页面没有echarts 的点击事件

plainheart commented 4 years ago

是否用了第三方扩展插件?

succulen-plants commented 4 years ago

没有使用, 您可以使用官网提供的例子试一下 比如: https://gallery.echartsjs.com/editor.html?c=xrJygEHHYb 还有问题是, 下面这种写法完全监听不到鼠标和键盘事件, 之前旧版本 mapbox可以, 换成mapbox3D的版本就监听不到


const map = chart.getModel().getComponent('mapbox3D').getMapbox();
map.on('load',()=>{
  map.getCanvas().addEnventListener('click', e=>{
})
})
succulen-plants commented 4 years ago

并且 和mapbox 结合后, 获取不到echarts 的 click事件

myChart.on('click', ()=>{
        alert('124')
    })
joyahuang commented 3 years ago

same question about the click event.

github-actions[bot] commented 1 year 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 1 year 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!