【问题标题】:highmap Data point click event breaks after zoom on a mobile (touch screen)在移动设备(触摸屏)上缩放后 highmap 数据点点击事件中断
【发布时间】:2018-03-14 06:17:18
【问题描述】:

在移动设备(触摸屏)上缩放后,Highmap 数据点点击事件中断 有什么建议吗?

【问题讨论】:

    标签: jquery css html highmaps


    【解决方案1】:

    tooltip.pointFormatter 与 useHTML 一起仍然期望一个字符串作为返回值,因此应该主要用于 CSS/HTML 格式化。 我建议对按钮等更高级的东西使用您自己的 HTML 工具提示:

     Highcharts.wrap(Highcharts.Point.prototype, 'select', function (proceed) {
        proceed.apply(this, Array.prototype.slice.call(arguments, 1));
        var points = mapChart.getSelectedPoints();
        $('tooltip-button-close').click(function () {
            points[0].select(false);
        }
       });
    

    演示:https://www.highcharts.com/maps/demo/rich-info

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 2013-07-31
      • 1970-01-01
      • 2016-06-25
      • 2015-03-16
      • 1970-01-01
      相关资源
      最近更新 更多