You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/05/18 09:40:31 UTC

[GitHub] zhangjiaqing commented on issue #8357: 结合百度地图之后,显示散点数据时,地图不显示,官方DEMO都有同样的BUG

zhangjiaqing commented on issue #8357: 结合百度地图之后,显示散点数据时,地图不显示,官方DEMO都有同样的BUG
URL: https://github.com/apache/incubator-echarts/issues/8357#issuecomment-390153886
 
 
   找到问题所在了
   
   使用百度地图当坐标系时,不能指定全局背景色
   
   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'
               }
             }
           }]
       }
   
   希望官方在文档中加以说明。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org