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/08/13 15:04:05 UTC

[GitHub] qingming418 opened a new issue #8863: 使用bmap后,type='scatter' 的itemStyle.color 不生效

qingming418 opened a new issue #8863: 使用bmap后,type='scatter' 的itemStyle.color 不生效
URL: https://github.com/apache/incubator-echarts/issues/8863
 
 
   使用了bmap作为图层后,在series里 type='scatter' 的 itemStyle.color 设置不生效
   
   + ECharts4.0 [ECharts 版本]:
   + 谷歌浏览器 [浏览器类型和版本]:
   
   ### [期望结果]
   ![image](https://user-images.githubusercontent.com/20061205/44039185-22641eae-9f4b-11e8-8e7c-9eb7f1376fd5.png)
   
   ### [实际结果]
   ![image](https://user-images.githubusercontent.com/20061205/44039269-5337b874-9f4b-11e8-92e7-0da6e34da6d1.png)
   
   ### ECharts option [ECharts配置项]
   ```javascript
   option = {
      visualMap: {
         show: false,
         min: 0,
         max: 100,
         left: 'left',
         top: 'bottom',
         text: ['高', '低'],
         calculable: true,
         seriesIndex: [1],
         inRange: {
           color: ['#0f0c29', '#302b63', '#24243e'],
          },
      },
     bmap: {
           center: [104.777182, 26.611526],
           zoom: 14,
           roam: false,
     },
     series: [
        {
         name: '停车场',
         type: 'effectScatter',
         coordinateSystem: 'bmap', 
         symbolSize: 20,
         showEffectOn: 'render',
         rippleEffect: {
           brushType: 'stroke',
         },
         hoverAnimation: true,
         label: {
           formatter: '{b}',
           position: 'bottom',
           color: '#fff',
           fontSize: 16,
           fontWeight: 'bold',
           fontFamily: 'Courier New',
           show: true,
         },
         itemStyle: {
           color: '#3F6EFE',
           shadowBlur: 10,
           shadowColor: '#3F6EFE',
         },
         zlevel: 1,
         data: [{ name:"滑雪场", value: [104.747182, 26.597526, 1234] }],
       },
       {
         name: '点',
         type: 'scatter',
         coordinateSystem: 'bmap', 
         symbol: 'pin',
         symbolSize: 100,
         label: {
           show: true,
           formatter: params => params.value[2],
           color: '#fff',
           fontSize: 14,
         },
         itemStyle: {
           borderWidth: 1,
           borderColor: '#f62157',
           color: () => '#f62157', // 标志颜色 不生效
         },
         zlevel: 6,
         data: [{ name:"滑雪场", value: [104.747182, 26.597526, 1234] }],
       },
     ],
   }
   
   ```
   用geo的时候标记点的颜色都能设置,换成bmap后边框颜色都可以生效,但是标记本身颜色失效,请问者要怎么处理呢?
   
   

----------------------------------------------------------------
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