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 2019/07/22 02:54:16 UTC

[GitHub] [incubator-echarts] DorisOu opened a new issue #10889: geo地图结合散点图,点击地图上的散点,tooltip框没有保持显示

DorisOu opened a new issue #10889: geo地图结合散点图,点击地图上的散点,tooltip框没有保持显示
URL: https://github.com/apache/incubator-echarts/issues/10889
 
 
   ### Version
   3.7.0
   
   ### Steps to reproduce
   series: [{
       type: 'scatter',
       coordinateSystem: 'geo',
       symbol: 'pin',
       symbolSize: 8,
       hoverAnimation: true,
       data: handleEventsResource.initSeriesData(opt.data),
       tooltip: {
           enterable: true, //开启鼠标可点击事件
           trigger: 'item',
           alwaysShowContent: true, //永远显示提示框的内容
           backgroundColor: 'rgba(20,0,93,0.9)',
           triggerOn: 'click',
           position: ['50%', '50%'],
           formatter: function(params, ticket, callback) {
               return '公司名称:'   params.data.company   '<br/>'  
                   '所在位置:'   params.data.position   '<br/>'  
                   '<a href="details.html?id='   params.data.id   '" target="_brank">查看详情</a>'
   
           }
       },
   }, {
       type: 'map',
       mapType: 'guangdong',
       geoIndex: 0,
       data: dataResource,
       tooltip: {
           trigger: "item",
           triggerOn: "mousemove",
           show: true,
           formatter: function(params) {
               return params.name
           }
       }
   }]
   
   ### What is expected?
   鼠标移进地图,显示提示框tooltip(已实现)
   鼠标点击散点,显示提示框tooltip,并保持提示框不消失
   
   ### What is actually happening?
   鼠标移进地图,显示提示框tooltip(已实现)
   鼠标点击散点,显示提示框tooltip,鼠标移动后tooltip消失了
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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