Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

结合百度地图之后,显示散点数据时,地图不显示,官方DEMO都有同样的BUG #8357

Closed
zhangjiaqing opened this issue May 17, 2018 · 1 comment
Labels

Comments

@zhangjiaqing
Copy link

One-line summary [问题简述]

请看官方DEMO地址显示效果
http://echarts.baidu.com/examples/editor.html?c=map-polygon

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

@zhangjiaqing
Copy link
Author

zhangjiaqing commented May 18, 2018

找到问题所在了

使用百度地图当坐标系时,不能指定全局背景色

option = {
       // backgroundColor: '#fbfcfd',   // 这行不能加,加了就不显示地图了
        bmap: {
          center: [104.114129, 37.550339],
          zoom: 5,
          roam: true
        },
        tooltip: {
            trigger: 'item',
          formatter: function (a) {
            let label = ''
            label = '<div class="lsps_map_tips">' +
              '<div class="lsps_map_tips_title">' + a.name + '</div>' +
              '<div  class="lsps_map_tips_avg">' + a.value[2] +
                '</div>' +
                '</div>'
            return label
          }.bind(this),
          borderRadius: 0,
          borderWidth: 0,
          padding: 0
        },
        series: [ {
            type: 'scatter', // 散点(气泡)图
          coordinateSystem: 'bmap',
          data: [
              {name: "LT45", value: ["119.841481", "29.21009", "金华分拨中心"]}],
          symbolSize: 10,
          symbol: 'circle',
          symbolRotate: 25,
          label: {
            normal: {
              formatter: '{b}',
              position: 'right',
              show: false
            },
            emphasis: {
              show: false
            }
          },
          itemStyle: {
            normal: {
              color: '#1174ff'
            }
          }
        }]
    }

希望官方在文档中加以说明,并修改官方DEMO。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants